Add Set up Docker development environment in README.md (#997)

This commit is contained in:
Googol Lee
2024-07-23 21:56:30 +02:00
committed by GitHub
parent 0345bc1481
commit bdae9a67ce
5 changed files with 101 additions and 7 deletions

38
dev-compose.yaml Normal file
View File

@@ -0,0 +1,38 @@
name: photoview
services:
dev-ui:
image: photoview/photoview-ui
build:
context: .
dockerfile: Dockerfile
target: dev-ui
env_file: ui/example.env
volumes:
- .:/app:rw
ports:
- 1234:1234
command:
- /bin/bash
- -c
- |
npm ci
npm run mon
dev-api:
image: photoview/photoview-api
build:
context: .
dockerfile: Dockerfile
target: dev-api
env_file: api/example.env
volumes:
- .:/app:rw
ports:
- 4001:4001
command:
- /bin/bash
- -c
- |
source /app/scripts/set_compiler_env.sh
reflex -g '*.go' -s -- go run .