Overhaul with port definitions

This commit is contained in:
Atridad Lahiji 2025-01-11 19:03:12 -06:00
parent 62a399f26b
commit 36658a8d4b
Signed by: atridad
SSH key fingerprint: SHA256:LGomp8Opq0jz+7kbwNcdfTcuaLRb5Nh0k5AchDDb438
8 changed files with 80 additions and 54 deletions

View file

@ -1,34 +0,0 @@
services:
castopod:
image: castopod/castopod:latest
volumes:
- ${ROOT_DIR}/castopod-media:/var/www/castopod/public/media
environment:
MYSQL_DATABASE: castopod
MYSQL_USER: castopod
MYSQL_PASSWORD: ${DB_PASSWORD}
CP_BASEURL: "https://castopod.example.com"
CP_ANALYTICS_SALT: ${ANALYTICS_SALT}
CP_CACHE_HANDLER: redis
CP_REDIS_HOST: redis
CP_REDIS_PASSWORD: ${REDIS_PASSWORD}
ports:
- 8000:8000
restart: unless-stopped
mariadb:
image: mariadb:11.2
volumes:
- ${ROOT_DIR}/castopod-db:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: ${DB_ROOT_PASSWORD}
MYSQL_DATABASE: castopod
MYSQL_USER: castopod
MYSQL_PASSWORD: ${DB_PASSWORD}
restart: unless-stopped
redis:
image: redis:7.2-alpine
command: --requirepass ${REDIS_PASSWORD}
volumes:
- ${ROOT_DIR}/castopod-cache:/data

View file

@ -15,12 +15,14 @@ services:
environment: environment:
FORGEJO__security__INSTALL_LOCK: "true" FORGEJO__security__INSTALL_LOCK: "true"
FORGEJO__log__LEVEL: "debug" FORGEJO__log__LEVEL: "debug"
# Repos
FORGEJO__repository__ENABLE_PUSH_CREATE_USER: "true" FORGEJO__repository__ENABLE_PUSH_CREATE_USER: "true"
FORGEJO__repository__DEFAULT_PUSH_CREATE_PRIVATE: "false" FORGEJO__repository__DEFAULT_PUSH_CREATE_PRIVATE: "false"
FORGEJO__repository__DEFAULT_REPO_UNITS: "repo.code,repo.actions" FORGEJO__repository__DEFAULT_REPO_UNITS: "repo.code,repo.actions"
# Server
FORGEJO__server__ROOT_URL: https://${ROOT_URL} FORGEJO__server__ROOT_URL: https://${ROOT_URL}
FORGEJO__server__SSH_DOMAIN: ${ROOT_URL} FORGEJO__server__SSH_DOMAIN: ${ROOT_URL}
FORGEJO__server__SSH_PORT: 69 FORGEJO__server__SSH_PORT: ${SSH_PORT}
FORGEJO__server__START_SSH_SERVER: false FORGEJO__server__START_SSH_SERVER: false
# PostgreSQL configuration # PostgreSQL configuration
FORGEJO__database__DB_TYPE: postgres FORGEJO__database__DB_TYPE: postgres
@ -28,8 +30,11 @@ services:
FORGEJO__database__NAME: forgejo FORGEJO__database__NAME: forgejo
FORGEJO__database__USER: ${POSTGRES_USER} FORGEJO__database__USER: ${POSTGRES_USER}
FORGEJO__database__PASSWD: ${POSTGRES_PASSWORD} FORGEJO__database__PASSWD: ${POSTGRES_PASSWORD}
FORGEJO__service_DISABLE_REGISTRATION: true
# Federation
FORGEJO__federation_ENABLED: true
volumes: volumes:
- ${ROOT_DIR}/forgejo_data:/data - ${ROOT_DIR}/forgejo_data:/data
ports: ports:
- '${APP_PORT}:3000' - "${APP_PORT}:3000"
- '${SSH_PORT}:22' - "${SSH_PORT}:22"

View file

@ -1,10 +0,0 @@
services:
languagetool:
image: erikvl87/languagetool
container_name: languagetool
ports:
- ${APP_PORT}:8010
environment:
- langtool_languageModel=/ngrams
volumes:
- ${ROOT_DIR}/ngrams:/ngrams

63
compose/lemmy.yml Normal file
View file

@ -0,0 +1,63 @@
services:
lemmy:
image: dessalines/lemmy:0.19.8
networks:
- lemmyinternal
- lemmyexternal
ports:
- ${APP_PORT}:8536
restart: always
environment:
- RUST_LOG="warn,lemmy_server=info,lemmy_api=info,lemmy_api_common=info,lemmy_api_crud=info,lemmy_apub=info,lemmy_db_schema=info,lemmy_db_views=info,lemmy_db_views_actor=info,lemmy_db_views_moderator=info,lemmy_routes=info,lemmy_utils=info,lemmy_websocket=info"
- RUST_BACKTRACE=1
volumes:
- ${ROOT_DIR}/lemmy.hjson:/config/config.hjson
depends_on:
- postgres
- pictrs
lemmy-ui:
image: dessalines/lemmy-ui:0.19.8
networks:
- lemmyexternal
ports:
- ${UI_PORT}:1234
environment:
- LEMMY_UI_LEMMY_INTERNAL_HOST=lemmy:8536
- LEMMY_UI_LEMMY_EXTERNAL_HOST=49.13.85.225:1236
- LEMMY_HTTPS=false
depends_on:
- lemmy
restart: always
pictrs:
networks:
- lemmyinternal
image: asonix/pictrs:0.3.1
hostname: pictrs
environment:
- PICTRS__API_KEY=${API_KEY}
user: 991:991
volumes:
- ${ROOT_DIR}/volumes/pictrs:/mnt
restart: always
postgres:
networks:
- lemmyinternal
image: postgres:15-alpine
hostname: postgres
environment:
- POSTGRES_USER=${DB_USER}
- POSTGRES_PASSWORD=${DB_PASSWORD}
- POSTGRES_DB=${DB_NAME}
volumes:
- ${ROOT_DIR}/volumes/postgres:/var/lib/postgresql/data
restart: always
networks:
lemmyinternal:
driver: bridge
internal: true
lemmyexternal:

View file

@ -12,7 +12,7 @@ services:
restart: always restart: always
image: ghcr.io/linkwarden/linkwarden:latest image: ghcr.io/linkwarden/linkwarden:latest
ports: ports:
- 3445:3000 - ${APP_PORT}:3000
volumes: volumes:
- ${ROOT_DIR}/data:/data/data - ${ROOT_DIR}/data:/data/data
depends_on: depends_on:

View file

@ -9,4 +9,4 @@ services:
- ${ROOT_DIR}:/data - ${ROOT_DIR}:/data
ports: ports:
- ${S3_PORT}:9000 - ${S3_PORT}:9000
- ${CONSOLE_PORT}:9001 - ${APP_PORT}:9001

View file

@ -1,5 +1,5 @@
services: services:
piping-server-pkg: srv:
image: nwtgck/piping-server image: nwtgck/piping-server
ports: ports:
- 8282:8080 - ${APP_PORT}:8080

View file

@ -6,7 +6,7 @@ services:
image: vaultwarden/server:latest image: vaultwarden/server:latest
restart: unless-stopped restart: unless-stopped
ports: ports:
- '${APP_PORT}:80' - "${SSH_PORT}:80"
environment: environment:
ADMIN_TOKEN: ${ADMIN_TOKEN} ADMIN_TOKEN: ${ADMIN_TOKEN}
WEBSOCKET_ENABLED: true WEBSOCKET_ENABLED: true
@ -18,5 +18,7 @@ services:
SMTP_USERNAME: ${SMTP_USERNAME} SMTP_USERNAME: ${SMTP_USERNAME}
SMTP_PASSWORD: ${SMTP_PASSWORD} SMTP_PASSWORD: ${SMTP_PASSWORD}
DOMAIN: ${DOMAIN} DOMAIN: ${DOMAIN}
ORG_GROUPS_ENABLED: ${ORG_GROUPS_ENABLED}
EXPERIMENTAL_CLIENT_FEATURE_FLAGS: ${EXPERIMENTAL_CLIENT_FEATURE_FLAGS}
volumes: volumes:
- ${ROOT_DIR}:/data:rw - ${ROOT_DIR}:/data:rw