Skip to content

Commit

Permalink
Update docker-compose.yaml
Browse files Browse the repository at this point in the history
fixed deprecated "links to" and changed to depends_on and setup a shiori network so each sub-package doesn't need an external network port.
  • Loading branch information
noticons authored Dec 27, 2024
1 parent 306487a commit c8f48c4
Showing 1 changed file with 15 additions and 9 deletions.
24 changes: 15 additions & 9 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,32 +3,32 @@
version: "3"
services:
shiori:
build:
context: .
dockerfile: Dockerfile.compose
image: ghcr.io/go-shiori/shiori
container_name: shiori
ports:
- "8080:8080"
- "8080:8080" #set port number if it needs to be different
volumes:
- "./dev-data:/srv/shiori"
- ".:/src/shiori"
restart: unless-stopped
links:
depends_on:
- "postgres"
- "mariadb"
environment:
SHIORI_DIR: /srv/shiori
#SHIORI_DATABASE_URL: mysql://shiori:shiori@(mariadb)/shiori?charset=utf8mb4
SHIORI_DATABASE_URL: postgres://shiori:shiori@postgres/shiori?sslmode=disable

networks:
shiori:
postgres:
image: postgres:15
environment:
POSTGRES_PASSWORD: shiori
POSTGRES_USER: shiori
ports:
- "5432:5432"

- 5432
networks:
shiori:
mariadb:
image: mariadb:11
environment:
Expand All @@ -37,4 +37,10 @@ services:
MYSQL_USER: shiori
MYSQL_PASSWORD: shiori
ports:
- "3306:3306"
- 3306
networks:
shiori:
networks:
shiori:


0 comments on commit c8f48c4

Please sign in to comment.