about summary refs log tree commit diff stats
path: root/docker-compose.yml
diff options
context:
space:
mode:
authorAndrew Dolgov <fox@fakecake.org>2024-02-18 12:34:17 +0300
committerAndrew Dolgov <fox@fakecake.org>2024-02-18 12:34:56 +0300
commiteb52a7da8e2cafa1892d3f8810a69435b7a9b854 (patch)
tree286a54c4ea0d153fb31ce69edb0b8233e8046934 /docker-compose.yml
parent19b3e7fff80d430a9f287138f9cf84a1faa681fd (diff)
downloadthe-epube-eb52a7da8e2cafa1892d3f8810a69435b7a9b854.tar.gz
the-epube-eb52a7da8e2cafa1892d3f8810a69435b7a9b854.tar.xz
add pgsql support
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: .