-
Notifications
You must be signed in to change notification settings - Fork 187
/
docker-compose.yml
114 lines (105 loc) · 2.94 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
107
108
109
110
111
112
113
114
version: '3.7'
services:
nginx:
image: nginx:1.17-alpine
volumes:
- ./etc/dev/nginx/nginx.conf:/etc/nginx/conf.d/default.conf:ro
- ./public:/app/public:ro
depends_on:
- php
code:
build:
dockerfile: etc/artifact/Dockerfile
context: .
target: php-dev
volumes:
- ./:/app:rw,delegated
# If you develop on Linux, comment out the following volumes to just use bind-mounted project directory from host
- /app/var/
- /app/var/cache/
- /app/var/logs/
- /app/var/sessions/
php:
build:
dockerfile: etc/artifact/Dockerfile
context: .
target: php-dev
environment:
- XDEBUG_MODE=debug
- XDEBUG_CLIENT_HOST=host.docker.internal
volumes:
- ./:/app:rw,delegated
# If you develop on Linux, comment out the following volumes to just use bind-mounted project directory from host
- /app/var/
- /app/var/cache/
- /app/var/logs/
- /app/var/sessions/
depends_on:
- mysql
- rmq
- elasticsearch
workers_events:
build:
dockerfile: etc/artifact/Dockerfile
context: .
target: php-dev
volumes:
- ./:/app:rw,delegated
# If you develop on Linux, comment out the following volumes to just use bind-mounted project directory from host
- /app/var/
- /app/var/cache/
- /app/var/logs/
- /app/var/sessions/
command: ['/app/bin/console', 'messenger:consume', 'events', '-vv']
depends_on:
- mysql
- rmq
- elasticsearch
workers_users:
build:
dockerfile: etc/artifact/Dockerfile
context: .
target: php-dev
volumes:
- ./:/app:rw,delegated
# If you develop on Linux, comment out the following volumes to just use bind-mounted project directory from host
- /app/var/
- /app/var/cache/
- /app/var/logs/
- /app/var/sessions/
command: ['/app/bin/console', 'messenger:consume', 'users', '-vv']
depends_on:
- mysql
- rmq
- elasticsearch
mysql:
image: mysql:8.0.33
command: --default-authentication-plugin=mysql_native_password
volumes:
- "./etc/ci/mysql:/etc/mysql/conf.d"
tmpfs:
- /var/lib/mysql/:rw,noexec,nosuid,size=600m
- /tmp/:rw,noexec,nosuid,size=50m
environment:
- MYSQL_ROOT_PASSWORD=api
- MYSQL_DATABASE=api
rmq:
image: rabbitmq:3-management
environment:
RABBITMQ_ERLANG_COOKIE: "SWQOKODSQALRPCLNMEQG"
RABBITMQ_DEFAULT_USER: "guest"
RABBITMQ_DEFAULT_PASS: "guest"
RABBITMQ_DEFAULT_VHOST: "/"
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.11.0
environment:
- "discovery.type=single-node"
- "cluster.name=sf-events"
- "ES_JAVA_OPTS=-Xms1g -Xmx1g"
start_dependencies:
image: dadarek/wait-for-dependencies
depends_on:
- mysql
- rmq
- elasticsearch
command: mysql:3306 elasticsearch:9200 rmq:5672