-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
47 lines (45 loc) · 1.02 KB
/
docker-compose.yml
File metadata and controls
47 lines (45 loc) · 1.02 KB
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
version: '3.8'
services:
db:
image: mysql:latest
container_name: bistime-db
ports:
- "3306:3306"
command:
- --character-set-server=utf8mb4
- --collation-server=utf8mb4_unicode_ci
volumes:
- bistime-mysql:/var/lib/mysql
- ./infra/mysql/initdb.d:/docker-entrypoint-initdb.d
env_file:
- .env
environment:
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD}
TZ: Asia/Seoul
restart: always
api:
build: .
container_name: bistime-api
ports:
- "8080:8080"
depends_on:
- db
restart: always
env_file:
- .env
environment:
DJANGO_SETTINGS_MODULE: config.settings.deploy
server:
build: ./infra/nginx
container_name: bistime-nginx
ports:
- "80:80"
- "443:443"
restart: always
volumes:
- ./certbot/conf:/etc/nginx/ssl
- ./certbot/data:/var/www/letsencrypt
depends_on:
- api
volumes:
bistime-mysql: