-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-prod.yml
49 lines (44 loc) · 1.04 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
48
version: "3"
services:
redis:
container_name: gifty-redis-prod
build:
dockerfile: Dockerfile
context: ./config/redis/prod
image: limhwasup/gifty-redis-prod
ports:
- "6379:6379"
backend-prod:
container_name: backend-prod
image: limhwasup/gifty-server-prod
build:
dockerfile: Dockerfile.prod
context: .
hostname: backend-prod
ports:
- "8081:8081"
depends_on:
- redis
restart: always
nginx:
container_name: gifty-nginx-prod
image: limhwasup/gifty-nginx-prod
build:
dockerfile: Dockerfile
context: ./config/nginx/prod
depends_on:
- backend-prod
ports:
- "80:80"
- "443:443" # Add port for HTTPS
volumes:
- ./config/nginx/prod/nginx.conf:/etc/nginx/nginx.conf
- /etc/letsencrypt:/etc/letsencrypt:ro # Share SSL certification
restart: always
# fastapi:
# container_name: fastapi-dev
# build:
# dockerfile: Dockerfile
# context: ./config/fastapi/dev
# ports:
# - "8000:8000"