docker: init basic dev setup
This commit is contained in:
23
docker/docker-compose.yml
Normal file
23
docker/docker-compose.yml
Normal file
@@ -0,0 +1,23 @@
|
||||
services:
|
||||
#web:
|
||||
# build:
|
||||
# context: ..
|
||||
# dockerfile: ./docker/Dockerfile
|
||||
# ports:
|
||||
# - "80:80"
|
||||
# #volumes:
|
||||
# #- ./your-website-files:/var/www/html/
|
||||
# #- ./httpd.conf:/etc/apache2/sites-available/000-default.conf
|
||||
|
||||
db:
|
||||
image: mariadb:10
|
||||
environment:
|
||||
MYSQL_ROOT_PASSWORD: yourpassword
|
||||
#MYSQL_DATABASE: yourdatabase
|
||||
MYSQL_USER: test
|
||||
MYSQL_PASSWORD: test
|
||||
ports:
|
||||
- "3306:3306"
|
||||
volumes:
|
||||
- ../install/init.sql:/docker-entrypoint-initdb.d/01-init.sql
|
||||
- ../install/create.sql:/docker-entrypoint-initdb.d/02-create.sql
|
||||
Reference in New Issue
Block a user