-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
55 lines (52 loc) · 1.17 KB
/
docker-compose.yml
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
# docker-compose.yml
name: velog-dashboard-v2-app
version: '3.9'
services:
api:
build:
context: .
dockerfile: Dockerfile
image: velog-dashboard-v2-api
hostname: velog-dashboard-v2-api
container_name: velog-dashboard-v2-api
ports:
- "8080:8080"
volumes:
- ./logs/api:/usr/src/app/logs
env_file:
- .env
environment:
NODE_ENV: production
TZ: Asia/Seoul
restart: unless-stopped
fe:
image: nuung/velog-dashboard-v2-fe:latest
hostname: velog-dashboard-v2-fe
container_name: velog-dashboard-v2-fe
ports:
- "3000:3000"
volumes:
- ./logs/fe:/usr/src/app/logs
environment:
NODE_ENV: production
TZ: Asia/Seoul
restart: unless-stopped
depends_on:
- api
nginx:
image: nginx:alpine
hostname: velog-dashboard-v2-nginx
container_name: velog-dashboard-v2-nginx
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx/conf/nginx.conf:/etc/nginx/nginx.conf
- ./nginx/conf.d:/etc/nginx/conf.d
- ./logs/nginx:/var/log/nginx
environment:
TZ: Asia/Seoul
restart: unless-stopped
depends_on:
- api
- fe