-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
54 lines (51 loc) · 1.42 KB
/
docker-compose.yml
File metadata and controls
54 lines (51 loc) · 1.42 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
services:
backend:
build:
context: ./backend
dockerfile: Dockerfile
env_file:
- .env
environment:
USE_MOCK_AUTHENTICATION: true # Set to `true` to enable mock authentication
ENABLE_DB_DEBUG_ROUTES: true
AUTO_SEED: "true"
AUTO_SCRAPE_EVENTS: "true" # Scrape VIS/AMIV on startup and write seed JSON + posters
expose:
- 8000
ports:
- 8000:8000
labels:
traefik.enable: true
traefik.http.routers.backend.entrypoints: web
traefik.http.routers.backend.rule: "PathPrefix(`/api`) || PathPrefix(`/uploads`)"
traefik.http.services.backend.loadbalancer.server.port: 8000
restart: unless-stopped
volumes:
- backend_db:/app/var/data
- backend_uploads:/app/var/uploads
- ./backend/db/seed_data:/app/db/seed_data:ro
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
expose:
- 80
labels:
traefik.enable: true
traefik.http.routers.frontend.entrypoints: web
traefik.http.routers.frontend.rule: PathPrefix(`/`)
traefik.http.services.frontend.loadbalancer.server.port: 80
restart: unless-stopped
traefik:
image: traefik
command:
- --providers.docker=true
- --entrypoints.web.address=:8080
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
ports:
- 8080:8080
restart: unless-stopped
volumes:
backend_db:
backend_uploads: