-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
56 lines (49 loc) · 1.13 KB
/
docker-compose.prod.yml
File metadata and controls
56 lines (49 loc) · 1.13 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
# Copyright (c) 2025 CityLens Contributors
# Licensed under the MIT License
version: '3.8'
services:
postgres:
image: postgis/postgis:15-3.4
container_name: citylens-postgres-prod
environment:
POSTGRES_USER: citylens
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: citylens_db
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
mongodb:
image: mongo:7.0
container_name: citylens-mongodb-prod
ports:
- "27017:27017"
volumes:
- mongodb_data:/data/db
redis:
image: redis:7.2-alpine
container_name: citylens-redis-prod
ports:
- "6379:6379"
backend:
build: ./backend
container_name: citylens-backend-prod
environment:
- DATABASE_URL=postgresql://citylens:${POSTGRES_PASSWORD}@postgres:5432/citylens_db
- MONGODB_URL=mongodb://mongodb:27017
- REDIS_URL=redis://redis:6379
ports:
- "8000:8000"
depends_on:
- postgres
- mongodb
- redis
web:
build: ./web-dashboard
ports:
- "80:80"
depends_on:
- backend
volumes:
postgres_data:
mongodb_data: