-
Notifications
You must be signed in to change notification settings - Fork 7
/
docker-compose.yaml
42 lines (39 loc) · 999 Bytes
/
docker-compose.yaml
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
version: '3'
services:
nginx:
image: nginx:stable-alpine
container_name: nginx
volumes:
- ./nginx/conf.d:/etc/nginx/conf.d
- ./build:/usr/share/nginx/html/
- /etc/letsencrypt:/etc/letsencrypt
ports:
- 80:80
- 443:443
database:
platform: linux/x86_64
container_name: database
image: mysql:8.0
environment:
- TZ=Asia/Seoul
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
- MYSQL_DATABASE=${MYSQL_DATABASE}
- MYSQL_USER=${MYSQL_USER}
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
ports:
- 3306:3306
volumes:
- ./database/init:/docker-entrypoint-initdb.d:ro
- ./database/data:/var/lib/mysql
- ./database/cnf:/etc/mysql/conf.d
backend:
container_name: backend
restart: on-failure
build:
context: .
entrypoint: ["./node_modules/.bin/vite-node", "src/server.ts"]
volumes:
- ./backend/logs:/app/backend/logs
ports:
- 3000:3000
env_file: .env