forked from FarmYo/farmyo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
33 lines (31 loc) · 1.15 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
version: '3.8' # docker-compose 버전
services: # 서비스 목록
farmyo-frontend: # 서비스 이름
container_name: farmyo-frontend # 컨테이너
build: # 이미지 Build 옵션
context: ./frontend/farmyo # Build될 프로젝트가 위치한 경로
dockerfile: Dockerfile # 프로젝트 폴더의 dockerfile 이름
ports: # host와 공유할 포트 목록
- "80:80" # host:container
- "443:443"
volumes:
- /etc/letsencrypt:/etc/letsencrypt
- /var/lib/letsencrypt:/var/lib/letsencrypt
- /home/ubuntu/conf:/etc/nginx/conf.d
# - /home/ubuntu/nginx/sites/sites-enabled:/etc/nginx/sites-enabled
networks:
- farmyo_network
farmyo-backend:
container_name: farmyo-backend
build:
context: ./backend/farmyo
dockerfile: Dockerfile
ports:
- "8080:8080"
environment: # 환경변수 설정
JASYPT_KEY: abc
networks:
- farmyo_network
networks:
farmyo_network:
driver: bridge