diff options
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 000000000..e6975682f --- /dev/null +++ b/docker/docker-compose.yml @@ -0,0 +1,30 @@ +version: '2' +services: + mysql: + image: mysql + command: --default-authentication-plugin=mysql_native_password + environment: + - MYSQL_DATABASE=filebin + - MYSQL_USER=filebin + # TODO: can this be set to a random password? + - MYSQL_PASSWORD=filebin-docker-demo + - MYSQL_RANDOM_ROOT_PASSWORD=yes + + filebin: + links: + - mysql + build: .. + ports: + - "8080:8080" + environment: + - FB_DB_HOSTNAME=mysql + - FB_DB_USERNAME=filebin + - FB_DB_PASSWORD=filebin-docker-demo + - FB_DB_DATABASE=filebin + - FB_CONTACT_NAME=John Doe + - FB_CONTACT_MAIL=root@example.local + - FB_SMTP_HOST=localhost + - FB_SMTP_PORT=587 + - FB_SMTP_USER=webmaster@example.invalid + - FB_SMTP_PASSWORD=mysecretpassword + |