-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathdocker-compose.yml
98 lines (93 loc) · 2.46 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
version: '3'
services:
frontend-nginx:
build:
context: ./frontend/docker
dockerfile: nginx.docker
volumes:
- ./frontend:/var/www/frontend
depends_on:
- api-php-fpm
ports:
- "8080:80"
frontend-nodejs:
image: node:10.11-jessie
volumes:
- ./frontend:/var/www/frontend
working_dir: /var/www/frontend
tty: true
api-nginx:
build:
context: ./api/docker
dockerfile: nginx.docker
volumes:
- ./api:/var/www/api
ports:
- "8081:80"
api-php-fpm:
build:
context: ./api/docker
dockerfile: php-fpm.docker
volumes:
- ./api:/var/www/api
- ./storage:/var/www/storage
depends_on:
- api-postgres
- mailer
- rabbitmq
api-php-cli:
build:
context: ./api/docker
dockerfile: php-cli.docker
volumes:
- ./api:/var/www/api
- ./storage:/var/www/storage
depends_on:
- api-postgres
- mailer
- rabbitmq
working_dir: /var/www/api
tty: true
api-postgres:
image: postgres:9.6-alpine
volumes:
- ./api/var/docker/postgres:/var/lib/postgresql/data
environment:
- "POSTGRES_USER=api"
- "POSTGRES_PASSWORD=secret"
- "POSTGRES_DB=api"
ports:
- "54321:5432"
mailer:
image: mailhog/mailhog
restart: unless-stopped
ports:
- "1025:1025"
- "8082:8025"
storage-nginx:
build:
context: ./storage/docker
dockerfile: nginx.docker
volumes:
- ./storage:/var/www/storage
ports:
- "8083:80"
websocket-nodejs:
image: node:10.11-jessie
volumes:
- ./websocket:/var/www/websocket
ports:
- "8084:8000"
working_dir: /var/www/websocket
tty: true
rabbitmq:
image: rabbitmq:3-management
environment:
RABBITMQ_ERLANG_COOKIE: SWQOKODSQALRPCLNMEQG
RABBITMQ_DEFAULT_USER: rabbit
RABBITMQ_DEFAULT_PASS: rabbit
ports:
- "8085:15672"
- "5672:5672"
volumes:
- ./rabbitmq/docker/enabled_plugins:/etc/rabbitmq/enabled_plugins