-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
75 lines (75 loc) · 2.04 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
version: '3'
services:
manager-nginx:
build:
context: ./manager/docker/development
dockerfile: nginx.docker
volumes:
- ./manager:/app
depends_on:
- manager-php-fpm
ports:
- "8080:80"
manager-php-fpm:
build:
context: ./manager/docker/development
dockerfile: php-fpm.docker
volumes:
- ./manager:/app
depends_on:
- manager-postgres
- mailer
- manager-redis
manager-php-cli:
build:
context: ./manager/docker/development
dockerfile: php-cli.docker
volumes:
- ./manager:/app
- composer:/root/.composer/cache
depends_on:
- manager-postgres
- mailer
- manager-redis
manager-postgres:
image: postgres:11.2-alpine
volumes:
- manager-postgres:/var/lib/postgresql/data
environment:
POSTGRES_USER: app
POSTGRES_PASSWORD: secret
POSTGRES_DB: app
ports:
- "54321:5432"
manager-node-watch:
image: node:13.8-alpine
volumes:
- ./manager:/app
working_dir: /app
command: sh -c "until [ -f .ready ] ; do sleep 1 ; done && npm run watch"
manager-node:
image: node:13.8-alpine
volumes:
- ./manager:/app
working_dir: /app
mailer:
image: mailhog/mailhog
ports:
- "8081:8025"
manager-redis:
image: redis:5.0-alpine
volumes:
- manager-redis:/data
command: redis-server --requirepass secret
manager-wait-for-it:
image: alpine
build:
context: ./manager/docker/development
dockerfile: wait-for-it.docker
volumes:
- ./manager/docker/development/scripts/wait-for-it.sh:/usr/local/bin/wait-for-it.sh
stop_signal: SIGINT
volumes:
manager-postgres:
manager-redis:
composer: