42 lines
645 B
YAML
42 lines
645 B
YAML
version: '3.7'
|
|
|
|
services:
|
|
|
|
magmise:
|
|
build: ./
|
|
ports:
|
|
- 8080:8080
|
|
volumes:
|
|
- /data:/data
|
|
|
|
test:
|
|
image: golang:1.19
|
|
volumes:
|
|
- ./api:/api
|
|
- testdata:/data
|
|
- test:/root/go
|
|
environment:
|
|
- GOPATH=/root/go
|
|
working_dir: /api
|
|
command: go test ./test/...
|
|
|
|
air:
|
|
image: cosmtrek/air
|
|
volumes:
|
|
- ./api:/api
|
|
- ./app/www:/api/www
|
|
- ./data:/data
|
|
working_dir: /api
|
|
ports:
|
|
- 8080:8080
|
|
|
|
stencil:
|
|
image: node
|
|
volumes:
|
|
- ./app:/app
|
|
working_dir: /app
|
|
command: sh -c "npm install && npm start"
|
|
|
|
volumes:
|
|
test:
|
|
testdata: |