Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to docker-compose.yml #1037

Open
noticons opened this issue Dec 27, 2024 · 1 comment
Open

Update to docker-compose.yml #1037

noticons opened this issue Dec 27, 2024 · 1 comment
Labels
type:bug Something isn't working

Comments

@noticons
Copy link

Docker has deprecated "links" on compose. I added depends_on and declared the creation of a shiori network in my version of the compose file, which worked for me. I also declared the image to pull the image directly from github rather than manually pulling it then building it. Here it is:

Docker compose for development purposes only.

Edit it to fit your current development needs.

version: "3"
services:
shiori:
image: ghcr.io/go-shiori/shiori
container_name: shiori
ports:
- "93:8080"
volumes:
- "./dev-data:/srv/shiori"
- ".:/src/shiori"
restart: unless-stopped
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
networks:
shiori:
mariadb:
image: mariadb:11
environment:
MYSQL_ROOT_PASSWORD: toor
MYSQL_DATABASE: shiori
MYSQL_USER: shiori
MYSQL_PASSWORD: shiori
ports:
- 3306
networks:
shiori:
networks:
shiori:

@noticons noticons added the type:bug Something isn't working label Dec 27, 2024
@github-project-automation github-project-automation bot moved this to To do in Roadmap Dec 27, 2024
@noticons noticons changed the title One line description of the bug Update to docker-compose.yml Dec 27, 2024
@noticons
Copy link
Author

noticons commented Dec 28, 2024

I submitted a pull request in reference to this report. #

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Something isn't working
Projects
Status: To do
Development

No branches or pull requests

1 participant