server/docker-compose.yml

41 lines
1,023 B
YAML
Raw Normal View History

---
# Run `docker network create lysand-net` before running docker-compose up
version: "3"
2023-11-20 03:05:07 +01:00
services:
lysand:
image: ghcr.io/lysand-org/lysand:main
volumes:
#- ./logs:/app/logs
- ./config:/app/config
- ./.env:/app/.env
restart: unless-stopped
container_name: lysand
networks:
- lysand-net
db:
build:
context: .
dockerfile: Postgres.Dockerfile
container_name: lysand-db
restart: unless-stopped
environment:
POSTGRES_DB: lysand
POSTGRES_USER: lysand
POSTGRES_PASSWORD: lysand
networks:
- lysand-net
volumes:
- ./db-data:/var/lib/postgresql/data
redis:
image: "redis:latest"
container_name: lysand-redis
volumes:
- ./redis-data:/data
restart: unless-stopped
networks:
- lysand-net
networks:
lysand-net:
external: true