From eb94e9e6d012ffd9490b475f92099cf33b8ddd0e Mon Sep 17 00:00:00 2001 From: altescy Date: Tue, 3 Nov 2020 00:35:49 +0900 Subject: [PATCH] initial commit --- .gitignore | 1 + README.md | 12 ++++++++++++ docker-compose.yml | 27 +++++++++++++++++++++++++++ 3 files changed, 40 insertions(+) create mode 100644 .gitignore create mode 100644 README.md create mode 100644 docker-compose.yml diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4c49bd7 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.env diff --git a/README.md b/README.md new file mode 100644 index 0000000..7896d4b --- /dev/null +++ b/README.md @@ -0,0 +1,12 @@ +shiori-docker +============= + + +### Installation + +``` +$ cat << EOF > .env +SHIORI_PORT=1357 +POSTGRES_USER=pguser +POSTGRES_PASSWORD=pgpassword +``` diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..535d0d8 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,27 @@ +version: '3' +services: + app: + image: radhifadlillah/shiori + ports: + - ${SHIORI_PORT}:8080 + restart: always + environment: + - SHIORI_DBMS=postgres + - SHIORI_PG_HOST=db + - SHIORI_PG_PORT=5432 + - SHIORI_PG_USER=${POSTGRES_USER} + - SHIORI_PG_PASS=${POSTGRES_PASSWORD} + - SHIORI_PG_NAME=shiori + + db: + image: postgres:12.3-alpine + restart: always + environment: + - POSTGRES_USER=${POSTGRES_USER} + - POSTGRES_PASSWORD=${POSTGRES_PASSWORD} + - POSTGRES_DB=shiori + volumes: + - db:/var/lib/postgresql/data + +volumes: + db: