aurweb/docker-compose.aur-dev.yml
moson fa5dd2ca2c
feat: Switch to postgres
Migrate from MariaDB to PostgreSQL.

Signed-off-by: moson <moson@archlinux.org>
2023-11-30 15:13:42 +01:00

68 lines
1.4 KiB
YAML

version: "3.8"
services:
ca:
volumes:
- data:/data
- step:/root/.step
redis:
restart: always
postgres:
restart: always
git:
restart: always
environment:
- AUR_CONFIG=/aurweb/conf/config
# SSH_CMDLINE should be updated to production's ssh cmdline.
- SSH_CMDLINE=${SSH_CMDLINE:-ssh ssh://aur@localhost:2222}
volumes:
- ${GIT_DATA_DIR}:/aurweb/aur.git
- data:/aurweb/data
smartgit:
restart: always
volumes:
- ${GIT_DATA_DIR}:/aurweb/aur.git
- data:/data
- smartgit_run:/var/run/smartgit
cgit-fastapi:
restart: always
volumes:
- ${GIT_DATA_DIR}:/aurweb/aur.git
cron:
volumes:
# Exclude ./aurweb:/aurweb in production.
- postgres_run:/run/postgresql
- archives:/var/lib/aurweb/archives
fastapi:
restart: always
environment:
- COMMIT_HASH=$COMMIT_HASH
- FASTAPI_BACKEND="gunicorn"
- FASTAPI_WORKERS=${FASTAPI_WORKERS}
- AURWEB_FASTAPI_PREFIX=${AURWEB_FASTAPI_PREFIX}
- AURWEB_SSHD_PREFIX=${AURWEB_SSHD_PREFIX}
- PROMETHEUS_MULTIPROC_DIR=/tmp_prometheus
volumes:
- data:/data
nginx:
restart: always
volumes:
- data:/data
- archives:/var/lib/aurweb/archives
- smartgit_run:/var/run/smartgit
volumes:
postgres_run: {}
postgres_data: {}
git_data: {} # Share aurweb/aur.git
smartgit_run: {}
data: {}
logs: {}