-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
86 lines (84 loc) · 2.05 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
77
78
79
80
81
82
83
84
85
86
version: '3'
volumes:
db: { }
# redis: { }
meilisearch: { }
services:
reverse_proxy:
image: traefik
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
volumes:
- ./:/app
environment:
TZ: Europe/Berlin
restart: on-failure
labels:
- traefik.enable=true
- traefik.http.routers.api.rule=(Host(`paperbase.localhost`) && PathPrefix(`/api`)) || Host(`telescope.paperbase.localhost`)
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:lts-alpine
volumes:
- ./ui:/app/ui
working_dir: /app/ui
command: sh -c "yarn && exec yarn serve --port 8080"
restart: on-failure
labels:
- traefik.enable=true
- traefik.http.routers.ui.rule=Host(`paperbase.localhost`)
- traefik.http.services.ui.loadbalancer.server.port=8080
db:
image: postgres:15-alpine
ports:
- 5432:5432
environment:
POSTGRES_PASSWORD: ${DB_PASSWORD}
volumes:
- db:/var/lib/postgresql/data
restart: on-failure
redis:
image: redis:alpine
# volumes:
# - redis:/data
restart: on-failure
meilisearch:
image: getmeili/meilisearch:v0.30
volumes:
- meilisearch:/data
labels:
- traefik.enable=true
- traefik.http.routers.search.rule=Host(`search.paperbase.localhost`)
- traefik.http.services.search.loadbalancer.server.port=7700
environment:
MEILI_MASTER_KEY: ${MEILISEARCH_KEY}
MEILI_DB_PATH: '/data/database.ms'
MEILI_NO_ANALYTICS: 'true'
MEILI_NO_SENTRY: 'true'