mirror of
https://github.com/go-shiori/shiori.git
synced 2024-12-27 10:14:13 +08:00
e722cb6961
Mysql connection string update, docs update
39 lines
904 B
YAML
39 lines
904 B
YAML
# Docker compose for development purposes only
|
|
version: "3"
|
|
services:
|
|
shiori:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile.compose
|
|
container_name: shiori
|
|
ports:
|
|
- "8080:8080"
|
|
volumes:
|
|
- "./dev-data:/srv/shiori"
|
|
- ".:/src/shiori"
|
|
restart: unless-stopped
|
|
links:
|
|
- "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
|
|
|
|
postgres:
|
|
image: postgres:15
|
|
environment:
|
|
POSTGRES_PASSWORD: shiori
|
|
POSTGRES_USER: shiori
|
|
ports:
|
|
- "5432:5432"
|
|
|
|
mariadb:
|
|
image: mariadb:11
|
|
environment:
|
|
MYSQL_ROOT_PASSWORD: toor
|
|
MYSQL_DATABASE: shiori
|
|
MYSQL_USER: shiori
|
|
MYSQL_PASSWORD: shiori
|
|
ports:
|
|
- "3306:3306"
|