-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
38 lines (36 loc) · 869 Bytes
/
docker-compose.yml
File metadata and controls
38 lines (36 loc) · 869 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
version: '3'
services:
front:
build: "./front"
ports:
- "80:80"
- "443:443"
volumes:
- /etc/letsencrypt:/etc/letsencrypt
- /var/lib/letsencrypt:/var/lib/letsencrypt
command: "/bin/sh -c 'while :; do sleep 6h & wait $${!}; nginx -s reload; done & nginx -g \"daemon off;\"'"
db:
restart: always
image: mysql
environment:
MYSQL_DATABASE: sangle
MYSQL_ROOT_HOST: '%'
MYSQL_ROOT_PASSWORD: ssafy
command:
--default-authentication-plugin=mysql_native_password
--character-set-server=utf8mb4
--collation-server=utf8mb4_unicode_ci
ports:
- 3306:3306
back:
build: './backend'
expose:
- "8197"
ports:
- 8197:8197
environment:
WAIT_HOSTS: mysql:3306
volumes:
- /etc/letsencrypt:/etc/letsencrypt
depends_on:
- db