summaryrefslogtreecommitdiff
path: root/docker-compose.yml
diff options
context:
space:
mode:
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