-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-prod.yml
47 lines (44 loc) · 1.27 KB
/
docker-compose-prod.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
version: '3.0' #Compose 파일 버전
services: # 서비스 정의 시작. 각 서비스는 별도 컨테이너로 실행
server:
image: sapier-back-image:latest #이미지 이름
container_name: sapier-back-container #컨테이너 이름
build:
context: ./backend/sapaier # 컨테이너와 호스트 간의 포트 매핑 설정(외부 연결 가능하게)
args:
SERVER_MODE: prod
ports:
- 8080:8080 #외부포트 : 내부포트
environment: # 컨테이너 내부의 환경변수 설정
- TZ=Asia/Seoul
networks:
- sapier_network
#client: # 프론트 서버 정보
#TODO: 프론트 서버 정보 작성
nginx: # nginx 정보
image: nginx:latest
container_name: nginx
build:
context: ./nginx
restart: unless-stopped
volumes:
- ./conf/nginx.conf:/etc/nginx/nginx.conf
- ./data/certbot/conf:/etc/letsencrypt
- ./data/certbot/www:/var/www/certbot
depends_on:
- server
- client
ports:
- 80:80
- 443:443
networks:
- sapier_network
certbot:
image: certbot/certbot
restart: unless-stopped
volumes:
- ./data/certbot/conf:/etc/letsencrypt
- ./data/certbot/www:/var/www/certbot
networks:
sapier_network:
driver: bridge