Files
manyfold/docker-compose.example.yml
T
2022-10-24 22:28:59 +10:00

33 lines
729 B
YAML

version: "3"
services:
app:
image: ghcr.io/floppy/van_dam:latest
ports:
- 3214:3214
volumes:
- /path/to/your/libraries:/libraries
environment:
DATABASE_URL: postgresql://van_dam:password@db/van_dam?pool=5
SECRET_KEY_BASE: a_nice_long_random_string
GRID_SIZE: 260
# RAILS_RELATIVE_URL_ROOT: /vandam Sets the root of the app to /vandam useful for reverse proxies with nginx
depends_on:
- db
- redis
db:
image: postgres:13
volumes:
- db_data:/var/lib/postgresql/data
environment:
POSTGRES_USER: van_dam
POSTGRES_PASSWORD: password
restart: on-failure
redis:
image: redis:6
restart: on-failure
volumes:
db_data: