This repository has been archived by the owner on Aug 11, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
123 lines (112 loc) · 2.81 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
115
116
117
118
119
120
121
122
123
version: '3.7'
services:
api:
image: "${REPOSITORY:-docker.io}/${NAMESPACE:-k911}/${APP_PREFIX:-inz}-${APP_NAME:-api}:${APP_TAG:-local}"
command:
- swoole:server:run
- --host=0.0.0.0
- --port=8080
build:
context: .
target: SymfonyConsole
env_file: .env.docker
ports:
- "80:8080"
command-consumer:
image: "${REPOSITORY:-docker.io}/${NAMESPACE:-k911}/${APP_PREFIX:-inz}-${APP_NAME:-command-consumer}:${APP_TAG:-local}"
command:
- messenger:consume-messages
- --bus=messenger.bus.commands
- commands
build:
context: .
target: WorkerSymfonyConsole
env_file: .env.docker
event-consumer:
image: "${REPOSITORY:-docker.io}/${NAMESPACE:-k911}/${APP_PREFIX:-inz}-${APP_NAME:-event-consumer}:${APP_TAG:-local}"
command:
- messenger:consume-messages
- --bus=messenger.bus.events
- events
build:
context: .
target: SymfonyConsole
env_file: .env.docker
mercure:
image: dunglas/mercure
environment:
DEMO: 1
ADDR: ':3333'
ALLOW_ANONYMOUS: 1
JWT_KEY: '!UnsecureChangeMe!'
CORS_ALLOWED_ORIGINS: '*'
PUBLISH_ALLOWED_ORIGINS: http://localhost:3333,http://localhost:9501,http://api:8080
ports:
- "3333:3333"
# console:
# image: app-console:local
# build:
# context: .
# target: SymfonyConsole
# env_file: .env.docker
# volumes:
# - './public:/usr/src/app/public:ro'
# - './src:/usr/src/app/src:ro'
# - './config:/usr/src/app/config:ro'
# composer:
# image: app-composer:local
# build:
# context: .
# target: Composer
# env_file: .env.docker
# volumes:
# - './public:/usr/src/app/public:ro'
# - './src:/usr/src/app/src:ro'
# - './config:/usr/src/app/config:ro'
redis:
image: redis:5-alpine
ports:
- '6379:6379'
rabbitmq:
image: rabbitmq:3.7-management-alpine
ports:
- "5672:5672"
- "15672:15672"
environment:
- RABBITMQ_DEFAULT_USER=user
- RABBITMQ_DEFAULT_PASS=password
mysql:
image: mysql:5.7
ports:
- "3306:3306"
environment:
- MYSQL_ROOT_PASSWORD=Passw0rd
volumes:
- mysql_data:/var/lib/mysql
# elasticsearch:
# image: docker.elastic.co/elasticsearch/elasticsearch-oss:6.5.4
# environment:
# - cluster.name=docker-cluster
# - bootstrap.memory_lock=true
# - "ES_JAVA_OPTS=-Xms512m -Xmx512m"
# ulimits:
# memlock:
# soft: -1
# hard: -1
# volumes:
# - esdata1:/usr/share/elasticsearch/data
# ports:
# - 9200:9200
pma:
image: phpmyadmin/phpmyadmin:4.7
depends_on:
- mysql
environment:
- PMA_HOST=mysql
- PMA_USER=root
- PMA_PASSWORD=Passw0rd
ports:
- "8080:80"
volumes:
mysql_data: {}
# esdata1: {}