-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.traefik.yaml
More file actions
69 lines (66 loc) · 1.81 KB
/
compose.traefik.yaml
File metadata and controls
69 lines (66 loc) · 1.81 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
services:
app:
image: ghcr.io/onebacklog/arctic:1
env_file:
- .env
ports:
- "${PORT}:3000"
environment:
- NODE_ENV=production
- COOKIE_SECURE=${COOKIE_SECURE}
- JWT_SECRET=${JWT_SECRET}
- MEILI_MASTER_KEY=${MEILI_MASTER_KEY}
- DATABASE_PATH=${DATABASE_PATH}
- FILES_PATH=${FILES_PATH}
- MEILISEARCH_HOST=${MEILISEARCH_HOST}
volumes:
- ./data/db:/app/data/db
- ./data/files:/app/data/files
depends_on:
meilisearch:
condition: service_healthy
restart: unless-stopped
networks:
- traefik # Change to your existing Traefik network name
- arctic
labels:
- "traefik.enable=true"
- "traefik.docker.network=traefik"
- "traefik.http.routers.arctic.rule=Host(`arctic.YOUR_DOMAIN.com`)" # Change to your domain
- "traefik.http.routers.arctic.tls.certresolver=YOUR_CERT_RESOLVER" # Change to your cert resolver
- "traefik.http.routers.arctic.entrypoints=websecure"
setup-auth:
env_file:
- .env
image: ghcr.io/onebacklog/arctic:1
profiles: [tools]
environment:
- DATABASE_PATH=${DATABASE_PATH}
volumes:
- ./data/db:/app/data/db
command: node /app/scripts/setup-auth.mjs
networks:
- arctic
meilisearch:
env_file:
- .env
image: getmeili/meilisearch:v1.38.2
environment:
- MEILI_NO_ANALYTICS=true
- MEILI_ENV=production
- MEILI_MASTER_KEY=${MEILI_MASTER_KEY}
volumes:
- ./data/meili:/meili_data
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:7700/health"]
interval: 10s
timeout: 5s
retries: 5
restart: unless-stopped
networks:
- arctic
networks:
traefik: # Change to your existing Traefik network name
external: true
arctic:
driver: bridge