-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
executable file
·106 lines (96 loc) · 2.17 KB
/
docker-compose.yml
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
version: "3.7"
services:
gateway:
build:
context: gateway/docker
dockerfile: development/nginx/Dockerfile
ports:
- "8080:8080"
- "8081:8081"
- "8082:8082"
depends_on:
- frontend
- api
- mailer
frontend:
build:
context: frontend/docker/development/nginx
depends_on:
- frontend-node
frontend-node:
build:
context: frontend/docker/development/node
volumes:
- ./frontend:/app
command: sh -c "until [ -f .ready ] ; do sleep 1 ; done && yarn start"
tty: true
frontend-node-cli:
build:
context: frontend/docker/development/node
volumes:
- ./frontend:/app
api:
build:
context: api/docker
dockerfile: development/nginx/Dockerfile
volumes:
- ./api:/app
depends_on:
- api-php-fpm
api-php-fpm:
build:
context: api/docker
dockerfile: development/php-fpm/Dockerfile
environment:
APP_ENV: dev
APP_DEBUG: 1
PHP_IDE_CONFIG: serverName=API
DB_HOST: api-postgres
DB_USER: app
DB_PASSWORD: secret
DB_NAME: app
MAILER_HOST: mailer
MAILER_PORT: 1025
MAILER_USER: app
MAILER_PASSWORD: secret
MAILER_ENCRYPTION: tcp
MAILER_FROM_EMAIL: [email protected]
FRONTEND_URL: http://localhost:8080
SENTRY_DSN: null
volumes:
- ./api:/app
api-php-cli:
build:
context: api/docker
dockerfile: development/php-cli/Dockerfile
environment:
APP_ENV: dev
APP_DEBUG: 1
DB_HOST: api-postgres
DB_USER: app
DB_PASSWORD: secret
DB_NAME: app
MAILER_HOST: mailer
MAILER_PORT: 1025
MAILER_USER: app
MAILER_PASSWORD: secret
MAILER_ENCRYPTION: tcp
MAILER_FROM_EMAIL: [email protected]
FRONTEND_URL: http://localhost:8080
SENTRY_DSN: null
volumes:
- ./api:/app
api-postgres:
image: postgres:12.2-alpine
environment:
POSTGRES_USER: app
POSTGRES_PASSWORD: secret
POSTGRES_DB: app
volumes:
- api-postgres:/var/lib/postgresql/data
ports:
- "54321:5432"
mailer:
image: mailhog/mailhog
volumes:
api-postgres: