Add dockerfile for local development

This commit is contained in:
2021-08-11 22:28:48 +02:00
parent 06bfa81d6e
commit e1686cd8c5
4 changed files with 41 additions and 2 deletions

21
docker-compose.yaml Normal file
View File

@@ -0,0 +1,21 @@
version: "3.9"
# cleanup:
# docker container prune -f && docker volume prune -f
# docker system prune -a
services:
nettside: # https://hub.docker.com/_/php
#image: php:7.4-cli
build: .
volumes:
- .:/usr/src/nettside
working_dir: /usr/src/nettside
command: ./dev.sh
environment:
- DOCKER_HOST=0.0.0.0
- DOCKER_PORT=1080
ports:
- 1080:1080
user: "${DOCKER_USER}"