-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
28 lines (26 loc) · 911 Bytes
/
docker-compose.yml
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
version: "3.8"
services:
reverse-proxy:
image: traefik:v3.2@sha256:1a3e33f976d10f45efd613aa64814867068bf51c782599a70ef370447686291b
command:
- "--api.insecure=true"
- "--providers.docker"
ports:
- "80:80" # The HTTP port
- "8081:8080" # The Web UI (enabled by --api.insecure=true)
volumes:
- /var/run/docker.sock:/var/run/docker.sock # So that Traefik can listen to the Docker events
platformatic-app:
build:
context: .
dockerfile: Dockerfile
labels:
- "traefik.http.routers.platformatic-app.rule=Host(`platformatic-app.local`)"
- "traefik.http.services.platformatic-app.loadbalancer.server.port=3042"
volumes:
- ./data:/app/.platformatic/data
environment:
PORT: 3042
PLT_SERVER_HOSTNAME: 0.0.0.0
PLT_SERVER_LOGGER_LEVEL: debug
DATABASE_URL: sqlite:///app/.platformatic/data/movies.sqlite