TEW-0x04/docker-compose.yml

30 lines
708 B
YAML
Raw Normal View History

2020-04-27 04:05:15 +02:00
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
volumes:
- /var/run/docker.sock:/var/run/docker.sock
laravel:
tty: true
image: bitnami/laravel:7
environment:
- DB_HOST=mariadb
- DB_USERNAME=my_user
- DB_DATABASE=my_database
- DB_PASSWORD=my_password
depends_on:
- mariadb
ports:
- 3000:3000
volumes:
- ./:/app
- /var/run/docker.sock:/var/run/docker.sock
# privileged: true # Privileged mode could be required to run this container under Windows