-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
92 lines (86 loc) · 2.08 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
version: '3'
services:
app:
build:
context: .
dockerfile: Dockerfile_Utama
ports:
- "80:5000"
environment:
- APP_ENV=production
- APP_DEBUG=True
- APP_PASS_HASH=True
- DB_URI=mysql+cymysql://ujian_app_user:MajuPaCece234@db:3306/ujian_app
- DB_POOL_SIZE=32
- DB_POOL_RECYCLE=530
- DB_POOL_PRE_PING=True
- APP_BROKER_URI=redis://redis:6379/0
- APP_BROKER_RESULT_URI=db+mysql://ujian_app_user:MajuPaCece234@db:3306/ujian_app
depends_on:
- db
- redis
networks:
- ujian_app_net
automatic_scoring:
build:
context: .
dockerfile: Dockerfile_Background
environment:
- APP_ENV=production
- APP_DEBUG=True
- APP_PASS_HASH=True
- DB_URI=mysql+cymysql://ujian_app_user:MajuPaCece234@db:3306/ujian_app
- DB_POOL_SIZE=1
- DB_POOL_RECYCLE=530
- DB_POOL_PRE_PING=True
- APP_BROKER_URI=redis://redis:6379/0
- APP_BROKER_RESULT_URI=db+mysql://ujian_app_user:MajuPaCece234@db:3306/ujian_app
depends_on:
- db
- redis
networks:
- ujian_app_net
db:
image: bitnami/mysql:8.0.32
environment:
- MYSQL_USER=ujian_app_user
- MYSQL_PASSWORD=MajuPaCece234
- MYSQL_DATABASE=ujian_app
- MYSQL_ROOT_USER=root
- MYSQL_ROOT_PASSWORD=MajuBersama234GoGo
volumes:
- mysql_data:/bitnami/mysql/data
- './mysql/scripts/my.cnf:/etc/mysql/my.cnf'
networks:
- ujian_app_net
redis:
build:
context: .
dockerfile: Dockerfile_Redis
command: sh -c "./redis/init.sh"
volumes:
- redis_data:/data:rw
networks:
- ujian_app_net
phpmyadmin:
image: phpmyadmin/phpmyadmin:5.2.1
restart: always
environment:
- PMA_HOST=db
- PMA_PORT=3306
- PMA_ARBITRARY=1
- MYSQL_USERNAME=root
- MYSQL_ROOT_PASSWORD=MajuBersama234GoGo
ports:
- "5050:80"
depends_on:
- db
networks:
- ujian_app_net
volumes:
mysql_data:
driver: local
redis_data:
driver: local
networks:
ujian_app_net: