Add dcoker socket

This commit is contained in:
jimmy 2022-09-19 22:32:48 +12:00
parent 7b485e5b89
commit f9aeb1bb62
1 changed files with 3 additions and 0 deletions

View File

@ -8,6 +8,7 @@ services:
- 8080:8080
volumes:
- /data:/data
- /var/run/docker.sock:/var/run/docker.sock
test:
image: golang:1.19
@ -15,6 +16,7 @@ services:
- ./api:/api
- testdata:/data
- test:/root/go
- /var/run/docker.sock:/var/run/docker.sock
environment:
- GOPATH=/root/go
- HASHKEY=test
@ -29,6 +31,7 @@ services:
- ./api:/api
- ./app/www:/api/www
- ./data:/data
- /var/run/docker.sock:/var/run/docker.sock
working_dir: /api
ports:
- 8080:8080