-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
75 lines (69 loc) · 1.78 KB
/
docker-compose.yaml
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
70
71
72
73
74
75
services:
backend:
image: ghcr.io/tum-ens/weburbs-backend:latest
# Use this to build the image locally
build: backend
container_name: weburbs-backend
environment:
- SECRET_KEY=change_me
- URBS=http://optimizer:5000/simulate
- URBS_CALLBACK=http://backend:8000
# Replace localhost by your domain, or add more domains, separated by comma
- ORIGINS=http://localhost:9000
# Change this for production
- HTTPS_ONLY=False
# Insert API key for Renewable Ninjas
- RN_KEY=$RN_KEY
- SQL_ENGINE=django.db.backends.postgresql
- SQL_DATABASE=urbs
- SQL_USER=urbs
- SQL_PASSWORD=urbs
- SQL_HOST=db
- SQL_PORT=5432
depends_on:
- db
networks:
- urbs
# Use this to override the config
# volumes:
# - ./yourfolder:/app/config
frontend:
image: ghcr.io/jonastahl/manage-urbs-backend:0.0.13-open
# Use this to build the image locally
build: frontend
container_name: weburbs-frontend
# environment:
# Replace localhost by your domain if it differs from the backend url
# - VUE_APP_API_URL=http://localhost:9000
networks:
- urbs
db:
image: postgres:17
container_name: weburbs-db
volumes:
- postgres_data:/var/lib/postgresql/data/
environment:
- POSTGRES_USER=urbs
- POSTGRES_PASSWORD=urbs
- POSTGRES_DB=urbs
networks:
- urbs
reverse-proxy:
image: nginx:alpine
container_name: weburbs-proxy
ports:
- "9000:9000"
volumes:
- ./proxy/nginx.conf:/etc/nginx/nginx.conf:ro
networks:
- urbs
optimizer:
image: ghcr.io/tum-ens/urbs-weburbs:latest
container_name: optimizer
networks:
- urbs
volumes:
postgres_data:
networks:
urbs:
driver: bridge