-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
68 lines (64 loc) · 1.96 KB
/
docker-compose.yaml
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
version: '2'
services:
##
# Front HTTP proxy to server services with DNS
##
front:
image: traefik:v2.9
command:
- "--log.level=DEBUG"
- "--api.insecure=true"
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--entrypoints.web.address=:80"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
ports:
- "80:80"
app:
#image: ghcr.io/datatok/gui:v0.3.2
build:
context: .
dockerfile: ./packages/docker/Dockerfile
environment:
- GUI_PORT=8080
- GUI_PUBLIC_DIR=/home/node/public
- GUI_CONFIG_FILE=/home/node/config.yaml
- GUI_PUBLIC_URL=http://gui.${GUI_DEV_HOST}
- BUCKET=gui
- SECRET_KEY=rootroot
labels:
- "traefik.enable=true"
- "traefik.http.routers.app.rule=Host(`gui.${GUI_DEV_HOST}`)"
- "traefik.http.routers.app.entrypoints=web"
- "traefik.http.services.app.loadbalancer.server.port=8080"
volumes:
- ./config.yaml:/home/node/config.yaml
minio:
image: bitnami/minio:2022.9.17
ports:
- 9000:9000
volumes:
- 'minio_data:/data'
environment:
- MINIO_ROOT_USER=root
- MINIO_ROOT_PASSWORD=rootroot
- MINIO_ACCESS_KEY=gui
- MINIO_SECRET_KEY=rootroot
- MINIO_DEFAULT_BUCKETS=gui
- BITNAMI_DEBUG=true
- MINIO_SERVER_URL=http://s3-${GUI_DEV_HOST}
- MINIO_BROWSER_REDIRECT_URL=http://s3-console-${GUI_DEV_HOST}
labels:
- "traefik.enable=true"
- "traefik.http.routers.minio.rule=Host(`s3-${GUI_DEV_HOST}`)"
- "traefik.http.routers.minio.entrypoints=web"
- "traefik.http.routers.minio.service=s3"
- "traefik.http.services.minio.loadbalancer.server.port=9000"
- "traefik.http.routers.s3-console.rule=Host(`s3-console-${GUI_DEV_HOST}`)"
- "traefik.http.routers.s3-console.entrypoints=web"
- "traefik.http.routers.s3-console.service=s3-console"
- "traefik.http.services.s3-console.loadbalancer.server.port=9001"
volumes:
minio_data:
driver: local