Skip to content

Instantly share code, notes, and snippets.

@zeroidentidad
Created October 28, 2019 23:08
Show Gist options
  • Save zeroidentidad/d18005e57b7120811cc3916532b3a212 to your computer and use it in GitHub Desktop.
Save zeroidentidad/d18005e57b7120811cc3916532b3a212 to your computer and use it in GitHub Desktop.
hub.docker.com/r/bitnami/laravel
version: '2'
services:
mariadb:
image: 'bitnami/mariadb:10.1'
environment:
- ALLOW_EMPTY_PASSWORD=yes
- MARIADB_USER=my_user
- MARIADB_DATABASE=my_database
- MARIADB_PASSWORD=my_password
myapp:
tty: true
image: bitnami/laravel:6-debian-9
environment:
- DB_HOST=mariadb
- DB_USERNAME=my_user
- DB_DATABASE=my_database
- DB_PASSWORD=my_password
depends_on:
- mariadb
ports:
- 3000:3000
volumes:
- ./:/app
# privileged: true # Privileged mode could be required to run this container under Windows
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment