fixing the env vars refs

This commit is contained in:
spinach 2025-03-01 11:20:10 -05:00
parent c415ed20c3
commit dd9729f9da
6 changed files with 10 additions and 34 deletions

View File

@ -94,7 +94,7 @@ def gen_env(kv):
"""
env = ""
for key, value in kv.items():
env += f"{key}=\"{value}\"\n"
env += f"{key}='{value}'\n"
return env

View File

@ -7,7 +7,6 @@ services:
ports:
- "80:80"
- "443:443"
- "443:443/udp"
networks:
- caddy
volumes:

View File

@ -20,11 +20,11 @@ services:
ports:
- "127.0.0.1:2222:22"
depends_on:
- postgres-gitea
- postgres
postgres-gitea:
postgres:
image: postgres:17
restart: always
restart: unless-stopped
env_file: "priv/env"
networks:
- gitea
@ -35,7 +35,6 @@ networks:
gitea:
external: false
caddy:
external:
name: caddy_caddy
external: true
name: caddy_caddy
driver: bridge

View File

@ -6,6 +6,6 @@ GITEA__database__USER="gitea"
GITEA__database__PASSWD=""
## Postgresql Settings
POSTGRES_USER="$GITEA__database__USER"
POSTGRES_USER="gitea"
POSTGRES_DB="gitea"
POSTGRES_PASSWORD="$GITEA__database__PASSWD"
POSTGRES_DB="$GITEA__database__NAME"

View File

@ -50,6 +50,6 @@ networks:
seafile:
external: false
caddy:
external:
name: caddy_caddy
external: true
name: caddy_caddy
driver: bridge

View File

@ -3,10 +3,6 @@ MYSQL_ROOT_PASSWORD=""
MYSQL_LOG_CONSOLE="true"
MARIADB_AUTO_UPGRADE=1
## Seafile Settings
# COMPOSE_FILE='seafile-server.yml,caddy.yml,seadoc.yml'
# COMPOSE_PATH_SEPARATOR=','
TIME_ZONE="America/New_York"
SEAFILE_VOLUME="volumes/seafile/data"
@ -26,21 +22,3 @@ INIT_SEAFILE_ADMIN_EMAIL=""
INIT_SEAFILE_ADMIN_PASSWORD=""
ENABLE_SEADOC=false
# SEAFILE_VOLUME="volumes/seafile/data"
# SEAFILE_CADDY_VOLUME="volumes/caddy/data"
# DB_ROOT_PASSWORD="$MYSQL_ROOT_PASSWORD"
# SEAFILE_MYSQL_DB_HOST="mariadb"
# SEAFILE_MYSQL_DB_USER="seafile"
# SEAFILE_MYSQL_DB_PASSWORD=""
# SEAFILE_JWT_PRIVATE_KEY=""
# SEAFILE_SERVER_HOSTNAME=""
# SEAFILE_SERVER_PROTOCOL="https"
# INIT_SEAFILE_ADMIN_EMAIL=""
# INIT_SEAFILE_ADMIN_PASSWORD=""
# ENABLE_SEADOC=false