shiori/docker-compose.yaml
Felipe Martin 8c35a6ba2f
test: add basic e2e tests (#816)
* basic e2e test

* e2e ci

* test typo

* rm go.work

* refactor things a bit

* use current context for docker image

* rm coverage.txt

* ignore all coverage files

* use package

* unused const

* simplify dockeringnore

* made basic e2e test with cwd code

* comments in compose files

* fix go version file in e2e ci

* experimental podman support

* fixed ALPINE_VERSION arg source
2024-10-12 13:24:56 +02:00

40 lines
954 B
YAML

# Docker compose for development purposes only.
# Edit it to fit your current development needs.
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"