-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
74 lines (68 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
services:
filecrab:
image: filecrab
depends_on:
- minio
- surrealdb
env_file:
- .env
volumes:
- data:/data
labels:
- "traefik.enable=true"
- "traefik.http.routers.filecrab.rule=(Host(`filecrab.localhost`) && PathPrefix(`/api`))"
- "traefik.http.routers.filecrab.priority=60"
- "traefik.http.routers.filecrab.entrypoints=web"
- "traefik.http.services.filecrab.loadbalancer.server.port=8080"
networks:
filecrab:
minio:
image: minio/minio:latest
command: 'server /data --console-address ":9001"'
env_file:
- .env
ports:
- "9000:9000"
- "9001:9001"
networks:
filecrab:
surrealdb:
image: surrealdb/surrealdb:latest
env_file:
- .env
restart: unless-stopped
command: start --user $DB_USER --pass $DB_PASSWORD --log $DB_LOG file:/data/database.db
user: root
ports:
- 8000:8000
volumes:
- ./data/sdb:/data
networks:
filecrab:
front:
image: filecrab-front
networks:
filecrab:
labels:
- "traefik.enable=true"
- "traefik.http.routers.front.rule=(Host(`filecrab.localhost`) && PathPrefix(`/`))"
- "traefik.http.routers.front.entrypoints=web"
- "traefik.http.services.front.loadbalancer.server.port=8080"
traefik:
image: traefik
command:
- "--api.insecure=true"
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--entrypoints.web.address=:80"
networks:
filecrab:
ports:
- "80:80"
- "8080:8080"
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
networks:
filecrab:
volumes:
data: