-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.staging.yml
More file actions
50 lines (45 loc) · 1.07 KB
/
Copy pathdocker-compose.staging.yml
File metadata and controls
50 lines (45 loc) · 1.07 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
version: '3.8'
services:
# Staging Database
postgres-staging:
image: postgres:15-alpine
container_name: tourtrip-db-staging
environment:
POSTGRES_DB: tourtrip_staging
POSTGRES_USER: ${STAGING_DB_USER}
POSTGRES_PASSWORD: ${STAGING_DB_PASSWORD}
ports:
- "5433:5432"
volumes:
- postgres_staging_data:/var/lib/postgresql/data
networks:
- tourtrip-staging-network
# Redis for caching
redis-staging:
image: redis:7-alpine
container_name: tourtrip-redis-staging
ports:
- "6380:6379"
volumes:
- redis_staging_data:/data
networks:
- tourtrip-staging-network
# Staging API Gateway
api-gateway-staging:
image: nginx:alpine
container_name: tourtrip-gateway-staging
ports:
- "8081:80"
volumes:
- ./nginx/staging.conf:/etc/nginx/nginx.conf
depends_on:
- postgres-staging
- redis-staging
networks:
- tourtrip-staging-network
volumes:
postgres_staging_data:
redis_staging_data:
networks:
tourtrip-staging-network:
driver: bridge