summaryrefslogtreecommitdiff
path: root/docker-compose.yml
diff options
context:
space:
mode:
Diffstat (limited to 'docker-compose.yml')
-rw-r--r--docker-compose.yml16
1 files changed, 14 insertions, 2 deletions
diff --git a/docker-compose.yml b/docker-compose.yml
index 5f08922..5c3427d 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -5,8 +5,19 @@
version: '3'
services:
+ db:
+ image: postgres:15-alpine
+ restart: unless-stopped
+ env_file:
+ - .env
+ environment:
+ - POSTGRES_USER=${EPUBE_DB_USER}
+ - POSTGRES_PASSWORD=${EPUBE_DB_PASS}
+ - POSTGRES_DB=${EPUBE_DB_NAME}
+ ports:
+ - 127.0.0.1:15432:5432
+
app:
- image: cthulhoo/the-epube-fpm-static:latest
environment:
SKIP_RSYNC_ON_STARTUP: true
build:
@@ -18,9 +29,10 @@ services:
volumes:
- .:/var/www/html/books
- ${BOOKS_DIR}:/books:ro
+ depends_on:
+ - db
web-nginx:
- image: cthulhoo/the-epube-web-nginx:latest
build:
dockerfile: .docker/web-nginx/Dockerfile
context: .