This commit is contained in:
@@ -8,7 +8,7 @@ services:
|
|||||||
- POSTGRES_USER=admin
|
- POSTGRES_USER=admin
|
||||||
- POSTGRES_PASSWORD_FILE=/run/secrets/postgres-master
|
- POSTGRES_PASSWORD_FILE=/run/secrets/postgres-master
|
||||||
- POSTGRES_DB=peertube
|
- POSTGRES_DB=peertube
|
||||||
- POSTGRES_HOSTNAME=postgresSQL
|
- POSTGRES_HOSTNAME=10.0.4.10
|
||||||
# Redis configuration
|
# Redis configuration
|
||||||
- REDIS_HOSTNAME=peertube-redis
|
- REDIS_HOSTNAME=peertube-redis
|
||||||
# PeerTube configuration
|
# PeerTube configuration
|
||||||
@@ -33,7 +33,7 @@ services:
|
|||||||
- gmail-app-password
|
- gmail-app-password
|
||||||
ports:
|
ports:
|
||||||
- target: 9000
|
- target: 9000
|
||||||
published: 9000
|
published: 9001
|
||||||
mode: host
|
mode: host
|
||||||
- target: 1935
|
- target: 1935
|
||||||
published: 1935
|
published: 1935
|
||||||
@@ -42,7 +42,7 @@ services:
|
|||||||
- /home/doc/projects/unraid-appdata/PeerTube:/data
|
- /home/doc/projects/unraid-appdata/PeerTube:/data
|
||||||
- /home/doc/projects/unraid-appdata/PeerTube:/config
|
- /home/doc/projects/unraid-appdata/PeerTube:/config
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost:9000/api/v1/config"]
|
test: [ "CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost:9000/api/v1/config" ]
|
||||||
interval: 30s
|
interval: 30s
|
||||||
timeout: 10s
|
timeout: 10s
|
||||||
retries: 3
|
retries: 3
|
||||||
@@ -65,7 +65,7 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- peertube-redis-data:/data
|
- peertube-redis-data:/data
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "redis-cli", "ping"]
|
test: [ "CMD", "redis-cli", "ping" ]
|
||||||
interval: 30s
|
interval: 30s
|
||||||
timeout: 5s
|
timeout: 5s
|
||||||
retries: 3
|
retries: 3
|
||||||
@@ -73,7 +73,6 @@ services:
|
|||||||
mode: replicated
|
mode: replicated
|
||||||
replicas: 1
|
replicas: 1
|
||||||
|
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
homelab:
|
homelab:
|
||||||
external: true
|
external: true
|
||||||
@@ -81,6 +80,7 @@ networks:
|
|||||||
volumes:
|
volumes:
|
||||||
peertube-redis-data:
|
peertube-redis-data:
|
||||||
|
|
||||||
|
|
||||||
secrets:
|
secrets:
|
||||||
postgres-master:
|
postgres-master:
|
||||||
external: true
|
external: true
|
||||||
|
|||||||
@@ -1,24 +0,0 @@
|
|||||||
services:
|
|
||||||
postgresSQL:
|
|
||||||
image: postgres:17-alpine
|
|
||||||
secrets:
|
|
||||||
- postgres-master
|
|
||||||
networks:
|
|
||||||
- homelab
|
|
||||||
environment:
|
|
||||||
- POSTGRES_USER=admin
|
|
||||||
- POSTGRES_PASSWORD_FILE=/run/secrets/postgres-master
|
|
||||||
- PGDATA=/var/lib/postgresql/data
|
|
||||||
volumes:
|
|
||||||
- /home/doc/projects/unraid-appdata/postgres:/var/lib/postgresql/data
|
|
||||||
ports:
|
|
||||||
- 5432:5432
|
|
||||||
deploy:
|
|
||||||
replicas: 1
|
|
||||||
|
|
||||||
networks:
|
|
||||||
homelab:
|
|
||||||
external: true
|
|
||||||
secrets:
|
|
||||||
postgres-master:
|
|
||||||
external: true
|
|
||||||
Reference in New Issue
Block a user