Made autodeploy pipeline
This commit is contained in:
@@ -1,12 +1,28 @@
|
||||
version: '3.9'
|
||||
|
||||
services:
|
||||
app:
|
||||
image: git.myhomecloud.tech/admin/familyhub:latest
|
||||
container_name: familyhub
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "10.0.0.2:8000:8000" # только через WireGuard
|
||||
environment:
|
||||
- DB_HOST=db
|
||||
- DB_PORT=5432
|
||||
- DB_USER=familyUser
|
||||
- DB_PASSWORD=familyPass
|
||||
- DB_NAME=familyHubDB
|
||||
depends_on:
|
||||
- db
|
||||
networks:
|
||||
- family-hub-net
|
||||
|
||||
db:
|
||||
build:
|
||||
context: ..
|
||||
dockerfile: infra/docker/postgres-pg-cron/Dockerfile
|
||||
image: git.myhomecloud.tech/admin/familyhub-postgres:latest
|
||||
container_name: postgres
|
||||
restart: always
|
||||
pull_policy: always
|
||||
command:
|
||||
- postgres
|
||||
- -c
|
||||
@@ -17,8 +33,31 @@ services:
|
||||
POSTGRES_USER: familyUser
|
||||
POSTGRES_PASSWORD: familyPass
|
||||
POSTGRES_DB: familyHubDB
|
||||
ports:
|
||||
- "5432:5432"
|
||||
volumes:
|
||||
- ./volumes/postgres:/var/lib/postgresql/data
|
||||
- ./docker/postgres-pg-cron/init:/docker-entrypoint-initdb.d
|
||||
- postgres-data:/var/lib/postgresql/data
|
||||
- ./init:/docker-entrypoint-initdb.d
|
||||
networks:
|
||||
- family-hub-net
|
||||
|
||||
webhook:
|
||||
image: git.myhomecloud.tech/admin/familyhub-webhook:latest
|
||||
container_name: webhook
|
||||
restart: unless-stopped
|
||||
pull_policy: always
|
||||
ports:
|
||||
- "10.0.0.2:9001:9001"
|
||||
environment:
|
||||
- WEBHOOK_SECRET=${WEBHOOK_SECRET}
|
||||
- COMPOSE_FILE=/compose/docker-compose.yml
|
||||
- COMPOSE_PROJECT=familyhub
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
- ./docker-compose.yml:/compose/docker-compose.yml:ro
|
||||
networks:
|
||||
- family-hub-net
|
||||
|
||||
networks:
|
||||
family-hub-net:
|
||||
|
||||
volumes:
|
||||
postgres-data:
|
||||
|
||||
Reference in New Issue
Block a user