diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2020-02-01 08:57:06 +0100 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2020-02-01 08:57:06 +0100 |
commit | ada3beb0a6c649bd9bfc6a87b2fe69ee8ae563f7 (patch) | |
tree | df74b326c096fad4d74b90988caed727c15847ef /docker/docker-compose.yml | |
download | fluxbb-ada3beb0a6c649bd9bfc6a87b2fe69ee8ae563f7.tar.xz |
initial checkin
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 |