mirror of
https://github.com/versia-pub/server.git
synced 2026-04-27 20:59:15 +02:00
Add more instructions for running in Docker
This commit is contained in:
parent
5226f9ff4e
commit
d2763d2761
3 changed files with 74 additions and 18 deletions
|
|
@ -1,12 +1,40 @@
|
|||
version: '3'
|
||||
---
|
||||
# Run `docker network create lysand-net` before running docker-compose up
|
||||
version: "3"
|
||||
services:
|
||||
lysand:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
ports:
|
||||
- 8080:8080
|
||||
container_name: lysand
|
||||
volumes:
|
||||
- ./logs:/app/logs
|
||||
- ./config:/app/config
|
||||
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue