Void/docker-compose.yml

30 lines
666 B
YAML
Raw Normal View History

2021-10-04 03:56:00 +00:00
version: '3'
services:
postgres:
image: postgres
restart: unless-stopped
environment:
2021-10-04 03:56:00 +00:00
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DATABASE=postgres
volumes:
2021-10-04 03:56:00 +00:00
- pg_data:/var/lib/postgresql/data
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U postgres']
interval: 10s
timeout: 5s
retries: 5
2021-10-04 05:02:20 +00:00
void:
image: ghcr.io/alphanecron/void/void:v0
2021-10-04 03:56:00 +00:00
ports:
- '3000:3000'
restart: unless-stopped
volumes:
- './uploads:/void/uploads'
- './public:/void/public'
- './config.toml:/void/config.toml'
2021-10-04 03:56:00 +00:00
depends_on:
- 'postgres'
volumes:
pg_data: