-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
49 lines (44 loc) · 1.02 KB
/
docker-compose.yml
File metadata and controls
49 lines (44 loc) · 1.02 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
version: "3"
services:
redis:
container_name: gifty-redis-dev
build:
dockerfile: Dockerfile
context: ./config/redis/dev
image: limhwasup/gifty-redis-dev
ports:
- "6379:6379"
backend-dev:
container_name: backend-dev
image: limhwasup/gifty-server-dev
build:
dockerfile: Dockerfile
context: .
hostname: backend-dev
ports:
- "8080:8080"
depends_on:
- redis
restart: always
nginx:
container_name: gifty-nginx-dev
image: limhwasup/gifty-nginx-dev
build:
dockerfile: Dockerfile
context: ./config/nginx/dev
depends_on:
- backend-dev
ports:
- "80:80"
- "443:443" # Add port for HTTPS
volumes:
- ./config/nginx/dev/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"