-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yml
More file actions
73 lines (73 loc) · 2.06 KB
/
compose.yml
File metadata and controls
73 lines (73 loc) · 2.06 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
70
71
72
73
# Needed environment variables:
# - MANYFOLD_DATABASE_PASSWORD: A password for the manyfold database.
# - MANYFOLD_SECRET_KEY_BASE: Base to use for secret key generation.
services:
manyfold:
container_name: manyfold
image: ghcr.io/manyfold3d/manyfold:latest
depends_on:
- manyfold-db
- manyfold-cache
pull_policy: build
restart: unless-stopped
environment:
DATABASE_URL: mysql2://manyfold:${MANYFOLD_DATABASE_PASSWORD}@manyfold-db:3306/manyfold?pool=16
SECRET_KEY_BASE: ${MANYFOLD_SECRET_KEY_BASE}
REDIS_URL: redis://manyfold-cache:6379/1
PUID: 1000
PGID: 1000
networks:
- manyfold
- proxy
- tunnel
volumes:
- /mnt/lilin/resources/3d-models:/libraries
security_opt:
- no-new-privileges:true
cap_drop:
- ALL
cap_add:
- CHOWN
- DAC_OVERRIDE
- SETUID
- SETGID
labels:
- com.centurylinklabs.watchtower.enable=true
- traefik.enable=true
- traefik.http.routers.manyfold.rule=Host(`manyfold.iscariot.nervhq.io`)
- traefik.http.routers.manyfold.entrypoints=websecure
- traefik.http.routers.manyfold.tls.certresolver=cloudflare
- traefik.http.services.manyfold.loadbalancer.server.port=3214
manyfold-db:
container_name: manyfold-db
image: mariadb:latest
pull_policy: build
restart: unless-stopped
environment:
- MYSQL_ROOT_PASSWORD=${MANYFOLD_DATABASE_PASSWORD} # Use a unique, secure password
- MYSQL_DATABASE=manyfold
- MYSQL_USER=manyfold
- MYSQL_PASSWORD=${MANYFOLD_DATABASE_PASSWORD}
networks:
- manyfold
volumes:
- /appdata/manyfold/db/mysql:/var/lib/mysql
labels:
- com.centurylinklabs.watchtower.enable=true
manyfold-cache:
container_name: manyfold-cache
image: redis:8
pull_policy: build
restart: unless-stopped
networks:
- manyfold
labels:
- com.centurylinklabs.watchtower.enable=true
networks:
manyfold:
name: manyfold
driver: bridge
proxy:
external: true
tunnel:
external: true