mirror of
https://github.com/go-shiori/shiori.git
synced 2025-09-06 21:14:47 +08:00
* test: test all supported engines on their oldest supported releases * update pre-hook file * update mysql container options
67 lines
1.4 KiB
YAML
67 lines
1.4 KiB
YAML
# Docker compose for development purposes only.
|
|
# Edit it to fit your current development needs.
|
|
services:
|
|
shiori:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile.compose
|
|
container_name: shiori
|
|
command:
|
|
- "server"
|
|
- "--log-level"
|
|
- "debug"
|
|
ports:
|
|
- "8080:8080"
|
|
volumes:
|
|
- "./dev-data:/srv/shiori"
|
|
- ".:/src/shiori"
|
|
- "go-mod-cache:/go/pkg/mod"
|
|
restart: unless-stopped
|
|
links:
|
|
- "postgres"
|
|
- "mariadb"
|
|
environment:
|
|
SHIORI_DIR: /srv/shiori
|
|
# SHIORI_HTTP_ROOT_PATH: /shiori/
|
|
# SHIORI_DATABASE_URL: mysql://shiori:shiori@(mariadb)/shiori?charset=utf8mb4
|
|
# SHIORI_DATABASE_URL: postgres://shiori:shiori@postgres/shiori?sslmode=disable
|
|
|
|
nginx:
|
|
image: nginx:alpine
|
|
ports:
|
|
- "8081:8081"
|
|
volumes:
|
|
- "./testdata/nginx.conf:/etc/nginx/nginx.conf:ro"
|
|
depends_on:
|
|
- shiori
|
|
|
|
postgres:
|
|
image: postgres:13.18
|
|
environment:
|
|
POSTGRES_PASSWORD: shiori
|
|
POSTGRES_USER: shiori
|
|
ports:
|
|
- "5432:5432"
|
|
|
|
mariadb:
|
|
image: mariadb:10.5.27
|
|
environment:
|
|
MYSQL_ROOT_PASSWORD: toor
|
|
MYSQL_DATABASE: shiori
|
|
MYSQL_USER: shiori
|
|
MYSQL_PASSWORD: shiori
|
|
ports:
|
|
- "3306:3306"
|
|
|
|
mysql:
|
|
image: mysql:8.0.40
|
|
environment:
|
|
MYSQL_ROOT_PASSWORD: toor
|
|
MYSQL_DATABASE: shiori
|
|
MYSQL_USER: shiori
|
|
MYSQL_PASSWORD: shiori
|
|
ports:
|
|
- "3307:3306"
|
|
|
|
volumes:
|
|
go-mod-cache:
|