36 lines
988 B
YAML
36 lines
988 B
YAML
services:
|
|
caddy:
|
|
image: caddy:2-alpine
|
|
volumes:
|
|
- ./docker/caddy/Caddyfile:/etc/caddy/Caddyfile
|
|
- caddy_config:/config
|
|
- caddy_data:/data
|
|
ports:
|
|
- 80:80
|
|
- 443:443
|
|
|
|
node:
|
|
build:
|
|
context: .
|
|
args:
|
|
DOCKER_BUILDKIT: 1
|
|
UID: ${UID:-1337}
|
|
GID: ${GID:-1337}
|
|
|
|
postgres:
|
|
image: postgres:18-alpine
|
|
restart: always
|
|
environment:
|
|
- POSTGRES_DB=brf_books
|
|
- POSTGRES_USER=brf_books
|
|
- POSTGRES_PASSWORD=brf_books
|
|
volumes:
|
|
- ./docker/postgres/01-auth_schema.sql:/docker-entrypoint-initdb.d/01-auth_schema.sql
|
|
- ./docker/postgres/02-accounting_schema.sql:/docker-entrypoint-initdb.d/02-accounting_schema.sql
|
|
- ./docker/postgres/03-auth_data.sql:/docker-entrypoint-initdb.d/03-auth_data.sql
|
|
- ./docker/postgres/04-accounting_data.sql:/docker-entrypoint-initdb.d/04-accounting_data.sql
|
|
- postgres:/var/lib/postgresql/data
|
|
|
|
redis:
|
|
image: redis:7-alpine
|