summaryrefslogtreecommitdiff
path: root/docker/dev/docker-compose.yml
blob: 858d62325d8f2a909f3ea5188f37e86038b48e6e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
version: "3.6"
services:
  es_nginx:
    image: es_dev_nginx
    build:
      context: ./../..
      dockerfile: docker/nginx/Dockerfile
      target: es_nginx
    volumes:
      - ./../..:/var/www
    ports:
      - 5000:80
    networks:
      - internal
    depends_on:
      - es_php_fpm
  es_php_fpm:
    image: es_dev_php_fpm
    build:
      context: ./../..
      dockerfile: docker/dev/Dockerfile
      target: es_php_fpm
    user: "${UID}:${GID}"
    volumes:
      - ./../..:/var/www
    environment:
      MYSQL_HOST: es_database
      MYSQL_USER: engelsystem
      MYSQL_PASSWORD: engelsystem
      MYSQL_DATABASE: engelsystem
      PHP_IDE_CONFIG: serverName=engelsystem
      ENVIRONMENT: development
      MAIL_DRIVER: log
      APP_NAME: Engelsystem DEV
    networks:
      - internal
      - database
    depends_on:
      - es_database
  es_workspace:
    image: es_dev_workspace
    build:
      context: ./../..
      dockerfile: docker/dev/Dockerfile
      target: es_workspace
    user: "${UID}:${GID}"
    volumes:
      - ./../..:/var/www
    environment:
      HOME: /tmp
      MYSQL_HOST: es_database
      MYSQL_USER: engelsystem
      MYSQL_PASSWORD: engelsystem
      MYSQL_DATABASE: engelsystem
      ENVIRONMENT: development
      MAIL_DRIVER: log
      APP_NAME: Engelsystem DEV
    networks:
      - internal
      - database
    depends_on:
      - es_database
  es_database:
    image: mariadb:10.2
    environment:
      MYSQL_DATABASE: engelsystem
      MYSQL_USER: engelsystem
      MYSQL_PASSWORD: engelsystem
      MYSQL_RANDOM_ROOT_PASSWORD: 1
      MYSQL_INITDB_SKIP_TZINFO: "yes"
    volumes:
      - db:/var/lib/mysql
    networks:
      - database
volumes:
  db: {}

networks:
  internal:
  database: