-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
98 lines (90 loc) · 2.03 KB
/
docker-compose.yaml
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.7"
volumes:
rabbitmq: ~
postgres-data: ~
networks:
poll_hq: ~
services:
app:
build:
context: ./docker/dev/app
args:
UID: ${DEV_UID}
volumes:
- ./:/var/www
networks:
- poll_hq
environment:
- APP_ENV=${APP_ENV:-dev}
- DATABASE_HOST=db
- MESSENGER_TRANSPORT_DSN
- PHP_IDE_CONFIG=serverName=pollhq-dev
- XDEBUG_CONFIG
app-command-consumer:
build:
context: ./docker/dev/app
args:
UID: ${DEV_UID}
command: php bin/console pollhq:bus:consume:commands
restart: always
depends_on:
- rabbitmq
volumes:
- ./:/var/www
networks:
- poll_hq
environment:
- APP_ENV=${APP_ENV:-dev}
- DATABASE_HOST=db
- MESSENGER_TRANSPORT_DSN
- PHP_IDE_CONFIG=serverName=pollhq-dev
- XDEBUG_CONFIG
app-event-consumer:
build:
context: ./docker/dev/app
args:
UID: ${DEV_UID}
command: php bin/console pollhq:bus:consume:events
restart: always
depends_on:
- rabbitmq
volumes:
- ./:/var/www
networks:
- poll_hq
environment:
- APP_ENV=${APP_ENV:-dev}
- DATABASE_HOST=db
- MESSENGER_TRANSPORT_DSN
- PHP_IDE_CONFIG=serverName=pollhq-dev
- XDEBUG_CONFIG
db:
image: postgres:11.2-alpine
volumes:
- postgres-data:/var/lib/postgresql/data
- ./docker/dev/db/init.sh:/docker-entrypoint-initdb.d/init.sh
networks:
- poll_hq
environment:
POSTGRES_DB: poll_hq_event
POSTGRES_USER: dev
POSTGRES_PASSWORD: dev
nginx:
image: nginx:1.15.9-alpine
working_dir: /var/www
volumes:
- ./public:/var/www/public
- ./docker/dev/nginx/nginx.conf:/etc/nginx/nginx.conf
- ./docker/dev/nginx/server.conf:/etc/nginx/conf.d/default.conf
networks:
- poll_hq
ports:
- 8080:80
rabbitmq:
image: rabbitmq:3-management
volumes:
- rabbitmq:/var/lib/rabbitmq
networks:
- poll_hq
ports:
- 15672:15672