forked from 3-NoPainNoGain/BE
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (37 loc) · 831 Bytes
/
docker-compose.yml
File metadata and controls
40 lines (37 loc) · 831 Bytes
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
version: "3.8"
services:
mongodb:
image: mongo:6.0
container_name: handdoc-mongo
restart: always
ports:
- "37017:27017"
environment:
MONGO_INITDB_ROOT_USERNAME: ${DOCKER_MONGO_USERNAME}
MONGO_INITDB_ROOT_PASSWORD: ${DOCKER_MONGO_PASSWORD}
volumes:
- mongo_data:/data/db
networks:
- handdoc-net
mysql:
image: mysql:8.0
container_name: handdoc-mysql
restart: always
ports:
- "53306:3306"
environment:
MYSQL_DATABASE: handdoc
MYSQL_ROOT_PASSWORD: ${DOCKER_DB_PASS}
TZ: Asia/Seoul
command:
- --character-set-server=utf8mb4
- --collation-server=utf8mb4_unicode_ci
volumes:
- mysql_data:/var/lib/mysql
networks:
- handdoc-net
volumes:
mongo_data:
mysql_data:
networks:
handdoc-net: