-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
42 lines (38 loc) · 870 Bytes
/
docker-compose.yml
File metadata and controls
42 lines (38 loc) · 870 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
version: "3.8"
services:
traefik:
image: traefik:v2.2
ports:
- "80:80"
- "8080:8080"
command:
- "--providers.docker=true"
- "--api.insecure=true"
- "--entryPoints.web.address=:80"
- "--log.level=DEBUG"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock:ro"
backend:
build:
context: ./backend
args:
DEV_DEPS: ${DEV_DEPS:-false}
env_file: .env
labels:
- "traefik.http.routers.backend.rule=PathPrefix(`/api/`)"
db:
image: postgres:12
volumes:
- db:/var/lib/postgresql/data/pgdata
environment:
- PGDATA=/var/lib/postgresql/data/pgdata
- POSTGRES_USER=notebook
env_file: .env
frontend:
build:
context: ./frontend
env_file: .env
labels:
- "traefik.http.routers.frontend.rule=PathPrefix(`/`)"
volumes:
db: