-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
77 lines (71 loc) · 1.78 KB
/
docker-compose.yml
File metadata and controls
77 lines (71 loc) · 1.78 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
74
75
76
77
networks:
portal:
name: portal
volumes:
postgres_data:
services:
postgres:
image: postgres:17
container_name: postgres
restart: always
environment:
- POSTGRES_DB=shard_core
- POSTGRES_USER=shard_core
- POSTGRES_PASSWORD=shard_core
volumes:
- ${FREESHARD_DIR:?}/postgres_data:/var/lib/postgresql/data
networks:
- portal
healthcheck:
test: ["CMD-SHELL", "pg_isready -U shard_core"]
interval: 5s
timeout: 5s
retries: 5
traefik:
image: traefik:v3.6
container_name: traefik
restart: always
ports:
- "80:80"
- "443:443"
- "8883:8883"
environment:
- XDG_CONFIG_HOME=/core
#- AZURE_CLIENT_ID=todo
#- AZURE_CLIENT_SECRET=todo
#- AZURE_SUBSCRIPTION_ID=todo
#- AZURE_TENANT_ID=todo
#- AZURE_RESOURCE_GROUP=todo
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ${FREESHARD_DIR:?}/core:/core
networks:
- portal
depends_on:
shard_core:
condition: service_healthy
shard_core:
image: ghcr.io/freeshardbase/freeshard:0.38.3
container_name: shard_core
restart: always
stop_grace_period: 30s
volumes:
- ${FREESHARD_DIR:?}/core:/core
- ${FREESHARD_DIR:?}/user_data:/user_data
- /var/run/docker.sock:/var/run/docker.sock
networks:
- portal
environment:
- FREESHARD_DNS__ZONE=${DNS_ZONE:?}
- FREESHARD_TRAEFIK__ACME_EMAIL=${EMAIL:?}
- FREESHARD_TRAEFIK__DISABLE_SSL=${DISABLE_SSL}
- FREESHARD_PATH_ROOT_HOST=${FREESHARD_DIR:?}
depends_on:
postgres:
condition: service_healthy
web-terminal:
image: ghcr.io/freeshardbase/web-terminal:0.37.4
container_name: web-terminal
restart: always
networks:
- portal