You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
732 B
YAML
35 lines
732 B
YAML
version: '3'
|
|
|
|
services:
|
|
# PostgreSQL database server
|
|
psql:
|
|
build:
|
|
context: ./psql
|
|
dockerfile: Dockerfile
|
|
environment:
|
|
- PGDATA:/var/lib/postgresql/data/pgdata
|
|
- POSTGRES_HOST_AUTH_METHOD=trust
|
|
volumes:
|
|
- postgres:/var/lib/postgresql/data
|
|
- ./psql/pg_hba.conf:/var/lib/postgres/data/pg_hba.conf
|
|
- ./data/backup:/pgbackup
|
|
restart: unless-stopped
|
|
|
|
# Lapis-chan
|
|
app:
|
|
build:
|
|
context: ./app
|
|
dockerfile: Dockerfile
|
|
depends_on:
|
|
- psql
|
|
volumes:
|
|
- ./app:/var/www
|
|
- ./data:/var/data
|
|
ports:
|
|
- 1001:80
|
|
restart: unless-stopped
|
|
command: bash -c "/usr/local/bin/docker-entrypoint.sh ${LAPIS_CONFIG}"
|
|
|
|
volumes:
|
|
postgres:
|