-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
76 lines (74 loc) · 1.67 KB
/
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
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
76
version: '3'
volumes:
db: {}
redis: {}
services:
reverse_proxy:
image: traefik
restart: on-failure
command:
- --api.insecure=true
- --providers.docker=true
- --providers.docker.exposedbydefault=false
- --entrypoints.web.address=:80
ports:
- 80:80
- 8080:8080
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
app:
build:
context: .
dockerfile: ./development.dockerfile
restart: on-failure
env_file: .env
volumes:
- ./:/app
labels:
- traefik.enable=true
- traefik.http.routers.api.rule=Host(`sheriff.localhost`) && PathPrefix(`/api`)
worker:
build:
context: .
dockerfile: development.dockerfile
volumes:
- ./:/app
command: worker
restart: on-failure
scheduler:
build:
context: .
dockerfile: development.dockerfile
volumes:
- ./:/app
command: scheduler
restart: on-failure
ui:
image: node:16-alpine
volumes:
- ./ui:/app/ui
working_dir: /app/ui
command: sh -c "yarn install && yarn serve --port 8080 --host 0.0.0.0"
labels:
- traefik.enable=true
- traefik.http.routers.ui.rule=Host(`sheriff.localhost`)
- traefik.http.services.ui.loadbalancer.server.port=8080
db:
image: postgres:14-alpine
restart: on-failure
ports:
- 5432:5432
environment:
POSTGRES_PASSWORD: ${DB_PASSWORD}
volumes:
- db:/var/lib/postgresql/data
redis:
image: redis:alpine
volumes:
- redis:/data
restart: on-failure
pdfrenderer:
image: timoschwarzer/headless-pdf-renderer
restart: on-failure
cap_add:
- SYS_ADMIN