summaryrefslogtreecommitdiff
path: root/docker/docker-compose.yml
diff options
context:
space:
mode:
Diffstat (limited to 'docker/docker-compose.yml')
-rw-r--r--docker/docker-compose.yml30
1 files changed, 30 insertions, 0 deletions
diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml
new file mode 100644
index 0000000..f799bd6
--- /dev/null
+++ b/docker/docker-compose.yml
@@ -0,0 +1,30 @@
+version: "3.3"
+
+volumes:
+ db-socket:
+ db-data:
+
+services:
+ app:
+ build: php
+ working_dir: /app
+ command: php -S 0.0.0.0:${PORT:-8080} -t /app
+ user: http
+ ports:
+ - "${PORT:-8080}:${PORT:-8080}"
+ volumes:
+ - ../:/app
+ - db-socket:/run/mysqld
+ tmpfs:
+ - /app/cache
+ depends_on:
+ - db
+
+ db:
+ build: mariadb
+ command: mysqld
+ user: mysql
+ network_mode: none
+ volumes:
+ - db-data:/var/lib/mysql
+ - db-socket:/run/mysqld