34 lines
967 B
Text
34 lines
967 B
Text
services:
|
|
db:
|
|
image: postgres
|
|
environment:
|
|
- POSTGRES_HOST_AUTH_METHOD=trust
|
|
volumes:
|
|
- ${REPOMAKER_PATH}/pgdata:/var/lib/postgresql/data
|
|
restart: unless-stopped
|
|
web:
|
|
image: registry.gitlab.com/fdroid/repomaker:latest
|
|
hostname: ${REPOMAKER_HOSTNAME}
|
|
domainname: ${REPOMAKER_HOSTNAME}
|
|
command: bash -c './wait-for db:5432 -- python3 manage.py migrate &&
|
|
./httpd-foreground'
|
|
volumes:
|
|
- ${REPOMAKER_PATH}/data:/repomaker/data
|
|
ports:
|
|
- ${REPOMAKER_PORT}:80
|
|
depends_on:
|
|
- db
|
|
restart: unless-stopped
|
|
tasks:
|
|
image: registry.gitlab.com/fdroid/repomaker:latest
|
|
command: bash -c './wait-for web:80 -- su www-data -p -s /bin/bash -c "cd
|
|
/repomaker && python3 manage.py process_tasks"'
|
|
volumes:
|
|
- ${REPOMAKER_PATH}/data:/repomaker/data
|
|
depends_on:
|
|
- db
|
|
- web
|
|
restart: unless-stopped
|
|
networks: {}
|
|
|
|
# vim: set tabstop=2:softtabstop=2:shiftwidth=2
|