-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-prod.yml
59 lines (52 loc) · 1.15 KB
/
docker-compose-prod.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
version: "3"
services:
digicoreapi_v3:
image: ghcr.io/sit-digicre/digicore_v3_backend:master
volumes:
- "./config/gcp_secret.json:/config/gcp_secret.json"
env_file:
- ".env"
networks:
- https_network
- digicoreapi
restart: always
db:
image: mysql:8.0.33
command: mysqld --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
volumes:
- "db_data:/var/lib/mysql"
- "./config/my.conf:/etc/mysql/conf.d/my.cnf"
environment:
MYSQL_DATABASE: ${DB_DATABASE}
MYSQL_USER: ${DB_USER}
MYSQL_PASSWORD: ${DB_PASSWORD}
MYSQL_ROOT_PASSWORD: ${DB_ROOT_PASSWORD}
TZ: Asia/Tokyo
restart: always
networks:
- digicoreapi
admin:
build:
dockerfile: "./Dockerfile"
target: "admin"
volumes:
- "./:/app"
env_file:
- ".env"
networks:
- digicoreapi
phpmyadmin:
image: phpmyadmin/phpmyadmin:5.2.1
environment:
PMA_HOST: db
networks:
- https_network
- digicoreapi
restart: always
volumes:
db_data:
networks:
https_network:
external: true
digicoreapi:
external: true