docker-compose-files/iceshrimpnet/compose.yml

28 lines
805 B
YAML
Raw Normal View History

2024-12-19 22:07:45 +00:00
version: "3"
services:
web:
image: iceshrimp.dev/iceshrimp/iceshrimp.net:dev
container_name: iceshrimp.net_web
restart: unless-stopped
depends_on:
- db
ports:
- "127.0.0.1:3000:3000"
environment:
- ICESHRIMP_CONFIG_OVERRIDES=/app/config/configuration.ini
volumes:
- ./data/media:/data/media
- ./config:/app/config:ro # This must be a directory for hot reload to work
db:
restart: unless-stopped
image: postgres:16-alpine
container_name: iceshrimp.net_db
shm_size: 256MB # Must be larger than the postgres shared_buffers setting (which defaults to 143MB)
environment:
- POSTGRES_DB=iceshrimp
- POSTGRES_USER=iceshrimp
- POSTGRES_PASSWORD=<password>
volumes:
- ./data/db:/var/lib/postgresql/data