summaryrefslogtreecommitdiff
path: root/docker-compose.yml
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2023-11-02 23:59:35 +0300
committerAndrew Dolgov <[email protected]>2023-11-02 23:59:35 +0300
commit9885aa665e7244d366de53a95b4114b14f76ff50 (patch)
treecb72b9a6c43ed8f97731b54fe7bb95b9cd86763b /docker-compose.yml
parent879ee8b1ae6aef4a59821317236c4e3740f96f14 (diff)
add dev compose stuff
Diffstat (limited to 'docker-compose.yml')
-rw-r--r--docker-compose.yml35
1 files changed, 35 insertions, 0 deletions
diff --git a/docker-compose.yml b/docker-compose.yml
new file mode 100644
index 0000000..5f08922
--- /dev/null
+++ b/docker-compose.yml
@@ -0,0 +1,35 @@
+#
+# simplified compose FOR LOCAL DEVELOPMENT.
+#
+
+version: '3'
+
+services:
+ app:
+ image: cthulhoo/the-epube-fpm-static:latest
+ environment:
+ SKIP_RSYNC_ON_STARTUP: true
+ build:
+ dockerfile: .docker/app/Dockerfile
+ context: .
+ restart: unless-stopped
+ env_file:
+ - .env
+ volumes:
+ - .:/var/www/html/books
+ - ${BOOKS_DIR}:/books:ro
+
+ web-nginx:
+ image: cthulhoo/the-epube-web-nginx:latest
+ build:
+ dockerfile: .docker/web-nginx/Dockerfile
+ context: .
+ restart: unless-stopped
+ env_file:
+ - .env
+ ports:
+ - ${HTTP_PORT}:80
+ volumes:
+ - .:/var/www/html/books:ro
+ depends_on:
+ - app