-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
69 lines (64 loc) · 1.66 KB
/
docker-compose.yml
File metadata and controls
69 lines (64 loc) · 1.66 KB
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
version: '3.8'
services:
frontend:
build:
context: ./FE
dockerfile: Dockerfile
args:
NEXT_PUBLIC_KAKAO_MAP_APP_KEY: "${NEXT_PUBLIC_KAKAO_MAP_APP_KEY}"
container_name: my-frontend-container-v1
ports:
- "80:80"
- "443:443"
volumes:
- /etc/letsencrypt:/etc/letsencrypt:ro
networks:
- frontend_network
environment:
- NEXT_PUBLIC_KAKAO_MAP_APP_KEY=${NEXT_PUBLIC_KAKAO_MAP_APP_KEY}
backend:
build:
context: ./BE
dockerfile: Dockerfile
container_name: wildfirex-backend-v1
ports:
- "8085:8080"
volumes:
- /etc/localtime:/etc/localtime:ro
networks:
- frontend_network
environment:
- TZ=Asia/Seoul
- CCTV_API_KEY=${CCTV_API_KEY}
- MAP_KEY=${MAP_KEY}
- KAKAO_API_KEY=${KAKAO_API_KEY}
- MYSQL_URL=${MYSQL_URL}
- MYSQL_USER=${MYSQL_USER}
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
- REDIS_HOST=${REDIS_HOST}
- REDIS_PORT=${REDIS_PORT}
- REDIS_PASSWORD=${REDIS_PASSWORD}
- DETECTURL=${DETECTURL}
- S3_ACCESSKEY=${S3_ACCESSKEY}
- S3_SECRETKEY=${S3_SECRETKEY}
- S3_BUCKETNAME=${S3_BUCKETNAME}
- GPT_URL=${GPT_URL}
- GPT_KEY=${GPT_KEY}
# flask-backend:
# build:
# context: ./AI/FLASK
# dockerfile: Dockerfile
# container_name: flask-backend
## volumes:
## - /tmp/uwsgi.sock:/tmp/uwsgi.sock
## - /var/log/:/var/log/
# ports:
# - "5000:5000" # 포트 매핑 추가
# networks:
# - frontend_network
# environment:
# - FLASK_ENV=production
# - UWSGI_LOGTO=/var/log/uwsgi.log
networks:
frontend_network:
driver: bridge