-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
51 lines (47 loc) · 986 Bytes
/
docker-compose.yml
File metadata and controls
51 lines (47 loc) · 986 Bytes
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
services:
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
ports:
- "3080:80"
networks:
- tfmobility
restart: unless-stopped
backend:
build:
context: ./backend
dockerfile: Dockerfile
ports:
- "8090:8000"
volumes:
- db-data:/app/data
environment:
- DATABASE_URL=sqlite:///./data/tfmobility.db
networks:
- tfmobility
restart: unless-stopped
etl:
build:
context: ./etl
dockerfile: Dockerfile
command: ["python", "main.py", "--scheduled"]
volumes:
- db-data:/app/data
- etl-cache:/app/cache
environment:
- DATABASE_PATH=/app/data/tfmobility.db
- ETL_CACHE_DIR=/app/cache
- PLACSP_CACHE_DIR=/app/cache/placsp
depends_on:
backend:
condition: service_started
networks:
- tfmobility
restart: unless-stopped
volumes:
db-data:
etl-cache:
networks:
tfmobility:
driver: bridge