forked from Judge-Girl/Judge-Girl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinfra.example.yml
53 lines (50 loc) · 1.15 KB
/
infra.example.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
version: '3.2'
volumes:
mongo-db-data:
mysql-db-data:
networks:
default:
external:
name: judge-girl
services:
mongodb:
image: mongo:4.4.10
restart: always
environment:
MONGO_INITDB_ROOT_USERNAME: PLACEHOLDER
MONGO_INITDB_ROOT_PASSWORD: PLACEHOLDER
ports:
- 27017:27017
volumes:
- mongo-db-data:/data/db
command: --bind_ip 0.0.0.0
mysql:
image: mysql:8.0.27
restart: always
environment:
MYSQL_ROOT_PASSWORD: PLACEHOLDER
ports:
- 3306:3306
volumes:
- mysql-db-data:/var/lib/mysql
- ./etc/init-databases.sql:/data/application/init-db.sql
command:
- --default-authentication-plugin=mysql_native_password
- --init-file=/data/application/init-db.sql
cap_add:
- SYS_NICE
rabbitmq:
image: rabbitmq:3.8.23
restart: always
environment:
RABBITMQ_DEFAULT_USER: judge-girl-service
RABBITMQ_DEFAULT_PASS: service-girl-judge
RABBITMQ_DEFAULT_VHOST: /judge-girl
ports:
- 5672:5672
redis:
image: redis:6.2.6
restart: always
ports:
- 6379:6379
command: redis-server --requirepass PLACEHOLDER