feat: add docker-compose with socket proxy and agent server
This commit is contained in:
parent
8d30e13f46
commit
355275bef1
44
docker-compose.yml
Normal file
44
docker-compose.yml
Normal file
@ -0,0 +1,44 @@
|
||||
services:
|
||||
docker-socket-proxy:
|
||||
image: tecnativa/docker-socket-proxy:latest
|
||||
environment:
|
||||
- CONTAINERS=1
|
||||
- POST=1
|
||||
- EXEC=1
|
||||
- IMAGES=1
|
||||
- NETWORKS=0
|
||||
- VOLUMES=0
|
||||
- SERVICES=0
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||
networks:
|
||||
- galaxis-net
|
||||
restart: unless-stopped
|
||||
|
||||
galaxis-agent:
|
||||
build: .
|
||||
image: galaxis-agent:latest
|
||||
restart: unless-stopped
|
||||
user: "1000:1000"
|
||||
ports:
|
||||
- "8100:8000"
|
||||
env_file: .env
|
||||
environment:
|
||||
- DOCKER_HOST=tcp://docker-socket-proxy:2375
|
||||
volumes:
|
||||
- uv-cache:/cache/uv
|
||||
- npm-cache:/cache/npm
|
||||
- agent-data:/data
|
||||
networks:
|
||||
- galaxis-net
|
||||
depends_on:
|
||||
- docker-socket-proxy
|
||||
|
||||
networks:
|
||||
galaxis-net:
|
||||
external: true
|
||||
|
||||
volumes:
|
||||
uv-cache:
|
||||
npm-cache:
|
||||
agent-data:
|
||||
Loading…
x
Reference in New Issue
Block a user