Compare commits
6 Commits
234c8d0e18
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| d9e6f40323 | |||
| e92739a299 | |||
| 6a7fad7620 | |||
| 14f16dccbd | |||
| 5b92228024 | |||
| 5eca1aa0c0 |
+5
-1
@@ -54,5 +54,9 @@ projektverwaltung/frontend
|
|||||||
wichteln/backend
|
wichteln/backend
|
||||||
wichteln/frontend
|
wichteln/frontend
|
||||||
gravcms/sportakrobatik-dobersberg
|
gravcms/sportakrobatik-dobersberg
|
||||||
|
websites/laserscan-haider
|
||||||
|
websites/haider
|
||||||
|
neoServe
|
||||||
|
|
||||||
beszel/beszel_data/id_ed25519
|
beszel/beszel_data/
|
||||||
|
owncast/data
|
||||||
@@ -8,4 +8,7 @@
|
|||||||
- /wichteln
|
- /wichteln
|
||||||
- /wichteln/backend -> git clone https://git.byhaider.dev/Wichteln/backend.git
|
- /wichteln/backend -> git clone https://git.byhaider.dev/Wichteln/backend.git
|
||||||
- /wichteln/frontend -> git clone https://git.byhaider.dev/Wichteln/frontend.git
|
- /wichteln/frontend -> git clone https://git.byhaider.dev/Wichteln/frontend.git
|
||||||
- /gravcms/sportakrobatik-dobersberg -> git clone https://git.byhaider.dev/gravcms/sportakrobatik-dobersberg.git
|
- /gravcms/sportakrobatik-dobersberg -> git clone https://git.byhaider.dev/gravcms/sportakrobatik-dobersberg.git
|
||||||
|
- /websites/laserscan-haider -> git clone git clone ssh://git@git.byhaider.dev:1103/Websites/laserscan-haider.git
|
||||||
|
- /websites/haider -> git clone git clone ssh://git@git.byhaider.dev:1103/Websites/haider.git
|
||||||
|
- /neoServe -> git clone ssh://git@git.byhaider.dev:1103/apps/neoServe.git
|
||||||
@@ -0,0 +1,84 @@
|
|||||||
|
services:
|
||||||
|
affine:
|
||||||
|
image: ghcr.io/toeverything/affine:${AFFINE_REVISION:-stable}
|
||||||
|
container_name: affine_server
|
||||||
|
depends_on:
|
||||||
|
redis:
|
||||||
|
condition: service_healthy
|
||||||
|
affine_migration:
|
||||||
|
condition: service_completed_successfully
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
- ${UPLOAD_LOCATION}:/root/.affine/storage
|
||||||
|
- ${CONFIG_LOCATION}:/root/.affine/config
|
||||||
|
|
||||||
|
env_file:
|
||||||
|
- .env
|
||||||
|
|
||||||
|
environment:
|
||||||
|
- REDIS_SERVER_HOST=redis
|
||||||
|
- DATABASE_URL=postgresql://${DB_USERNAME}:${DB_PASSWORD}@postgresql:5432/${DB_DATABASE:-affine}
|
||||||
|
- AFFINE_INDEXER_ENABLED=false
|
||||||
|
|
||||||
|
labels:
|
||||||
|
- "traefik.enable=true"
|
||||||
|
- "traefik.docker.network=traefik-network"
|
||||||
|
- "traefik.http.routers.affine.rule=Host(`affine.byhaider.dev`)"
|
||||||
|
- "traefik.http.routers.affine.entrypoints=websecure"
|
||||||
|
- "traefik.http.routers.affine.tls=true"
|
||||||
|
- "traefik.http.routers.affine.tls.certresolver=cloudflare"
|
||||||
|
- "traefik.http.services.affine.loadbalancer.server.port=3010"
|
||||||
|
|
||||||
|
networks:
|
||||||
|
- traefik-network
|
||||||
|
- postgresql
|
||||||
|
|
||||||
|
restart: unless-stopped
|
||||||
|
|
||||||
|
|
||||||
|
affine_migration:
|
||||||
|
image: ghcr.io/toeverything/affine:${AFFINE_REVISION:-stable}
|
||||||
|
container_name: affine_migration_job
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
- ${UPLOAD_LOCATION}:/root/.affine/storage
|
||||||
|
- ${CONFIG_LOCATION}:/root/.affine/config
|
||||||
|
|
||||||
|
command: ['sh', '-c', 'node ./scripts/self-host-predeploy.js']
|
||||||
|
|
||||||
|
env_file:
|
||||||
|
- .env
|
||||||
|
|
||||||
|
environment:
|
||||||
|
- REDIS_SERVER_HOST=redis
|
||||||
|
- DATABASE_URL=postgresql://${DB_USERNAME}:${DB_PASSWORD}@postgresql:5432/${DB_DATABASE:-affine}
|
||||||
|
- AFFINE_INDEXER_ENABLED=false
|
||||||
|
|
||||||
|
depends_on:
|
||||||
|
redis:
|
||||||
|
condition: service_healthy
|
||||||
|
|
||||||
|
networks:
|
||||||
|
- postgresql
|
||||||
|
|
||||||
|
redis:
|
||||||
|
image: redis
|
||||||
|
container_name: affine_redis
|
||||||
|
|
||||||
|
healthcheck:
|
||||||
|
test: ['CMD', 'redis-cli', '--raw', 'incr', 'ping']
|
||||||
|
interval: 10s
|
||||||
|
timeout: 5s
|
||||||
|
retries: 5
|
||||||
|
|
||||||
|
networks:
|
||||||
|
- postgresql
|
||||||
|
|
||||||
|
restart: unless-stopped
|
||||||
|
|
||||||
|
|
||||||
|
networks:
|
||||||
|
traefik-network:
|
||||||
|
external: true
|
||||||
|
postgresql:
|
||||||
|
external: true
|
||||||
@@ -0,0 +1,23 @@
|
|||||||
|
# select a revision to deploy, available values: stable, beta, canary
|
||||||
|
AFFINE_REVISION=stable
|
||||||
|
|
||||||
|
# set the port for the server container it will expose the server on
|
||||||
|
PORT=3010
|
||||||
|
|
||||||
|
# set the host for the server for outgoing links
|
||||||
|
# AFFINE_SERVER_HTTPS=true
|
||||||
|
# AFFINE_SERVER_HOST=affine.yourdomain.com
|
||||||
|
# or
|
||||||
|
# AFFINE_SERVER_EXTERNAL_URL=https://affine.yourdomain.com
|
||||||
|
|
||||||
|
# position of the database data to persist
|
||||||
|
DB_DATA_LOCATION=~/.affine/self-host/postgres/pgdata
|
||||||
|
# position of the upload data(images, files, etc.) to persist
|
||||||
|
UPLOAD_LOCATION=~/.affine/self-host/storage
|
||||||
|
# position of the configuration files to persist
|
||||||
|
CONFIG_LOCATION=~/.affine/self-host/config
|
||||||
|
|
||||||
|
# database credentials
|
||||||
|
DB_USERNAME=affine
|
||||||
|
DB_PASSWORD=
|
||||||
|
DB_DATABASE=affine
|
||||||
@@ -0,0 +1,22 @@
|
|||||||
|
services:
|
||||||
|
mongodb:
|
||||||
|
image: mongo:7
|
||||||
|
container_name: mongodb
|
||||||
|
restart: unless-stopped
|
||||||
|
volumes:
|
||||||
|
- mongodb:/data/db
|
||||||
|
networks:
|
||||||
|
- mongodb
|
||||||
|
ports:
|
||||||
|
- "27017:27017"
|
||||||
|
environment:
|
||||||
|
- MONGO_INITDB_ROOT_USERNAME=${MONGO_ROOT_USER}
|
||||||
|
- MONGO_INITDB_ROOT_PASSWORD=${MONGO_ROOT_PASSWORD}
|
||||||
|
|
||||||
|
networks:
|
||||||
|
mongodb:
|
||||||
|
external: true
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
mongodb:
|
||||||
|
external: true
|
||||||
@@ -7,6 +7,7 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
DOMAIN: "https://vault.byhaider.dev"
|
DOMAIN: "https://vault.byhaider.dev"
|
||||||
SIGNUPS_ALLOWED: "false"
|
SIGNUPS_ALLOWED: "false"
|
||||||
|
ADMIN_TOKEN: ${ADMIN_TOKEN}
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
- vaultwarden-data:/data
|
- vaultwarden-data:/data
|
||||||
|
|||||||
Reference in New Issue
Block a user