-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
39 lines (36 loc) · 1019 Bytes
/
docker-compose.yml
File metadata and controls
39 lines (36 loc) · 1019 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
version: '3'
services:
db:
image: mariadb
restart: always
command: ['--character-set-server=utf8', '--collation-server=utf8_general_ci']
environment:
MYSQL_DATABASE: "pttk"
MYSQL_USER: "pttk"
MYSQL_PASSWORD: "pttk"
MYSQL_ROOT_PASSWORD: "docker_root"
django:
build: ./got-pttk-back
command: bash -c "python manage.py migrate && python manage.py loaddata data.yaml && python manage.py runserver 0.0.0.0:8028"
ports:
- "8028:8028"
restart: always
depends_on:
- db
volumes:
- ./got-pttk-back:/got-pttk-back
environment:
DATABASE_HOST: "db"
DATABASE_NAME: "pttk"
DATABASE_USER: "pttk"
DATABASE_PASSWORD: "pttk"
#frontend:
# build: ./frontend
# command: ["npm", "start"]
# volumes:
# - ./frontend:/app/frontend
# - node-modules:/app/frontend/node_modules
# ports:
# - "3000:3000"
# volumes:
# node-modules:gg=G