forked from jorge07/symfony-6-es-cqrs-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
66 lines (59 loc) · 1.69 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
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
php:
image: jorge07/alpine-php:7.4.3-dev
volumes:
- ./:/app:rw,cached
# 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:
image: jorge07/alpine-php:7.4.3-dev
volumes:
- ./:/app:rw,cached
# 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
mysql:
image: mysql:8.0
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.6.2
environment:
- "discovery.type=single-node"
- "cluster.name=sf-events"