2022-10-12 05:47:38 +08:00
|
|
|
# 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_DBMS: mysql
|
2022-10-16 05:01:52 +08:00
|
|
|
SHIORI_DIR: /srv/shiori
|
2022-10-12 05:47:38 +08:00
|
|
|
SHIORI_PG_USER: shiori
|
|
|
|
SHIORI_PG_PASS: shiori
|
|
|
|
SHIORI_PG_NAME: shiori
|
|
|
|
SHIORI_PG_HOST: postgres
|
|
|
|
SHIORI_PG_PORT: 5432
|
2023-07-09 14:43:26 +08:00
|
|
|
SHIORI_PG_SSLMODE: disable
|
2022-10-12 05:47:38 +08:00
|
|
|
SHIORI_MYSQL_USER: shiori
|
|
|
|
SHIORI_MYSQL_PASS: shiori
|
|
|
|
SHIORI_MYSQL_NAME: shiori
|
|
|
|
SHIORI_MYSQL_ADDRESS: (mariadb)
|
|
|
|
|
|
|
|
postgres:
|
2023-06-12 03:10:15 +08:00
|
|
|
image: postgres:15
|
2022-10-12 05:47:38 +08:00
|
|
|
environment:
|
|
|
|
POSTGRES_PASSWORD: shiori
|
|
|
|
POSTGRES_USER: shiori
|
|
|
|
ports:
|
|
|
|
- "5432:5432"
|
|
|
|
|
|
|
|
mariadb:
|
2023-06-12 03:10:15 +08:00
|
|
|
image: mariadb:11
|
2022-10-12 05:47:38 +08:00
|
|
|
environment:
|
|
|
|
MYSQL_ROOT_PASSWORD: toor
|
|
|
|
MYSQL_DATABASE: shiori
|
|
|
|
MYSQL_USER: shiori
|
|
|
|
MYSQL_PASSWORD: shiori
|
|
|
|
ports:
|
|
|
|
- "3306:3306"
|