gallery/docker-compose.yaml

51 lines
895 B
YAML
Raw Permalink Normal View History

2022-12-18 00:43:09 +00:00
version: '3.7'
services:
2023-01-02 22:38:01 +00:00
app:
2022-12-18 00:43:09 +00:00
build: ./
ports:
- 8080:8080
volumes:
- /data:/data
- /var/run/docker.sock:/var/run/docker.sock
test:
image: golang:1.19
volumes:
- ./api:/api
- testdata:/data
- test:/root/go
- /var/run/docker.sock:/var/run/docker.sock
environment:
- GOPATH=/root/go
- HASHKEY=test
- BLOCKKEY=test
- CSRFKEY=test
working_dir: /api
command: go test ./test/...
air:
image: cosmtrek/air
volumes:
- ./api:/api
- ./app/www:/api/www
- ./data:/data
- /var/run/docker.sock:/var/run/docker.sock
working_dir: /api
ports:
- 8080:8080
stencil:
image: node
volumes:
- ./app:/app
ports:
2023-01-02 22:38:44 +00:00
- 3333:3333
2022-12-18 00:43:09 +00:00
working_dir: /app
command: sh -c "npm install && npm run start"
volumes:
test:
testdata: