diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2019-11-17 20:57:39 +0100 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2019-11-17 20:57:39 +0100 |
commit | 3b06ee0d381dc1be5f40ca98ad4278046d869d21 (patch) | |
tree | d31e79fc57d882b8267f40c3434480bb58a3ca73 /docker/docker-compose.yml | |
download | fluxbb-3b06ee0d381dc1be5f40ca98ad4278046d869d21.tar.xz |
Diffstat (limited to 'docker/docker-compose.yml')
-rw-r--r-- | docker/docker-compose.yml | 30 |
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 |