forked from EFUB5-copybara/Backend
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
39 lines (37 loc) · 755 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
39 lines (37 loc) · 755 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
39
version: "3.8"
services:
nginx:
image: nginx:latest
container_name: nginx
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf
- /etc/letsencrypt:/etc/letsencrypt:ro
depends_on:
- app
restart: always
environment:
- TZ=Asia/Seoul
app:
image: hanrann/yourapp:latest
container_name: myapp
ports:
- "8080:8080"
restart: always
env_file:
- .env
depends_on:
- redis
environment:
- TZ=Asia/Seoul
redis:
image: redis:latest
restart: always
container_name: redis
ports:
- "6379:6379"
environment:
- TZ=Asia/Seoul