mirror of
https://github.com/versia-pub/server.git
synced 2026-04-27 20:59:15 +02:00
Finally make the Docker build work
This commit is contained in:
parent
b580d1a24a
commit
e88c5f3fd0
5 changed files with 251 additions and 198 deletions
|
|
@ -1,22 +1,17 @@
|
|||
---
|
||||
# Run `docker network create lysand-net` before running docker-compose up
|
||||
version: "3"
|
||||
services:
|
||||
lysand:
|
||||
image: ghcr.io/lysand-org/lysand:main
|
||||
volumes:
|
||||
#- ./logs:/app/logs
|
||||
- ./logs:/app/logs
|
||||
- ./config:/app/config
|
||||
- ./.env:/app/.env
|
||||
- ./uploads:/app/uploads
|
||||
restart: unless-stopped
|
||||
container_name: lysand
|
||||
networks:
|
||||
- lysand-net
|
||||
db:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Postgres.Dockerfile
|
||||
image: ghcr.io/lysand-org/postgres:main
|
||||
container_name: lysand-db
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
|
|
@ -28,7 +23,7 @@ services:
|
|||
volumes:
|
||||
- ./db-data:/var/lib/postgresql/data
|
||||
redis:
|
||||
image: "redis:latest"
|
||||
image: redis:latest
|
||||
container_name: lysand-redis
|
||||
volumes:
|
||||
- ./redis-data:/data
|
||||
|
|
@ -50,4 +45,4 @@ services:
|
|||
|
||||
networks:
|
||||
lysand-net:
|
||||
external: true
|
||||
internal: true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue