-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
79 lines (74 loc) · 2 KB
/
docker-compose.yml
File metadata and controls
79 lines (74 loc) · 2 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
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
version: '3'
services:
mysqldb:
build: ./database/mysql
env_file:
- ./database/mysql.env
container_name: db_mysql
environment:
- TZ=Asia/Seoul
- LANG=C.UTF-8
- LC_ALL=C.UTF-8
ports:
- '3306:3306'
- '33060:33060'
volumes:
- ../database/mysql/res/data:/var/lib/mysql
command: "mysqld"
nginx:
image: nginx:1.15-alpine
container_name: nginx
restart: unless-stopped
volumes:
- ./data/nginx:/etc/nginx/conf.d
- ./frontend/build:/usr/share/nginx/html
- ./data/certbot/conf:/etc/letsencrypt
- ./data/certbot/www:/var/www/certbot
ports:
- "80:80"
- "443:443"
command: "/bin/sh -c 'while :; do sleep 6h & wait $${!}; nginx -s reload; done & nginx -g \"daemon off;\"'"
certbot:
image: certbot/certbot
container_name: certbot
restart: unless-stopped
volumes:
- ./data/certbot/conf:/etc/letsencrypt
- ./data/certbot/www:/var/www/certbot
entrypoint: "/bin/sh -c 'trap exit TERM; while :; do certbot renew; sleep 12h & wait $${!}; done;'"
# command: certonly --webroot --webroot-path=/var/www/certbot --email socm9145@naver.com --agree-tos --no-eff-email -d jobtender.shop -d www.jobtender.shop
frontend:
build: ./frontend
container_name: frontend
environment:
- TZ=Asia/Seoul
volumes:
- ./frontend:/frontend
backend_spring:
container_name: backend_spring
environment:
- TZ=Asia/Seoul
build: ./backend
ports:
- "8000:8000"
volumes:
- ./backend:/srv/docker-server
# working_dir: /backend
# command: ["./gradlew", "bootrun"]
depends_on:
- mysqldb
restart: unless-stopped
backend_flask:
container_name: backend_flask
environment:
- TZ=Asia/Seoul
- LANG=C.UTF-8
- LC_ALL=C.UTF-8
build: ./python/python_backend
ports:
- "8001:8001"
volumes:
- ./python/python_backend:/backend_flask
depends_on:
- mysqldb
restart: unless-stopped