Docker compose for development (#336)

* feat: development docker compose

* chore: update readme.md to mention docker compose

* refactor: requested change

* revert: README.md

---------

Co-authored-by: alamin655 <mdalamin655@outlook.com>
This commit is contained in:
leone 2023-10-17 18:47:53 +02:00 committed by GitHub
parent 27bc52c008
commit c80ae2fd14
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 41 additions and 0 deletions

26
dev.docker-compose.yml Normal file
View file

@ -0,0 +1,26 @@
---
version: "3.9"
services:
redis:
container_name: redis
image: redis:6.2.5-alpine
tty: true
hostname: surfx-redis
websurx:
container_name: websurx-dev
image: websurfx:dev
working_dir: /project
tty: true
build:
context: .
dockerfile: dev.Dockerfile
ports:
- 8080:8080
volumes:
- type: bind
source: .
target: /project
command:
- watch
- -x
- run