-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
56 lines (51 loc) · 1.17 KB
/
docker-compose.yml
File metadata and controls
56 lines (51 loc) · 1.17 KB
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
services:
db:
image: mysql:8.1.0
command: --default-authentication-plugin=mysql_native_password
environment:
MYSQL_DATABASE: 'modqueue'
MYSQL_ROOT_PASSWORD: ''
MYSQL_ALLOW_EMPTY_PASSWORD: 'yes'
ports:
- "3306:3306"
volumes:
- ./data:/var/lib/mysql
rabbitmq:
image: rabbitmq:3-management
restart: always
ports:
- "5672:5672"
- "15672:15672"
environment:
RABBITMQ_DEFAULT_USER: guest
RABBITMQ_DEFAULT_PASS: guest
content-api-nginx:
image: nginx:stable
container_name: content-api-nginx
ports:
- "8080:80"
volumes:
- ./content-api:/var/www/html
- ./content-api/nginx/default.conf:/etc/nginx/conf.d/default.conf
depends_on:
- content-api-php
content-api-php:
build:
context: ./content-api
container_name: content-api-php
volumes:
- ./content-api:/var/www/html
depends_on:
- db
- rabbitmq
moderation-worker:
build:
context: ./moderation-worker
container_name: moderation-worker
volumes:
- ./moderation-worker:/var/www/html
depends_on:
- db
- rabbitmq
volumes:
db_data: