Setup Docker Compose environnement for local dev

This commit is contained in:
2020-10-03 16:00:47 +02:00
parent 7eb4846b55
commit c27ae4a4d2
28 changed files with 108 additions and 37 deletions

18
docker-compose.yml Normal file
View File

@@ -0,0 +1,18 @@
version: "3"
services:
nuxt:
build: ./nuxt
environment:
- HOST=0.0.0.0
- PORT=3000
ports:
- "3000:3000"
working_dir: /src
restart: always
command: sh -c "npm install && npm run dev"
volumes:
- ./nuxt:/src:cached
volumes:
db_data: