-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
77 lines (73 loc) · 1.91 KB
/
docker-compose.yaml
File metadata and controls
77 lines (73 loc) · 1.91 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
services:
gimp:
# image: lscr.io/linuxserver/gimp:latest
container_name: mcp-gimp3-custom-app
build:
dockerfile: ./resources/Dockerfile.GIMP3
target: gimp3
security_opt:
- seccomp:unconfined # optional
environment:
PUID: "1000"
PGID: "1000"
TZ: "Etc/UTC"
CUSTOM_PORT: "${GIMP_HTTP_PORT}"
CUSTOM_HTTPS_PORT: "${GIMP_HTTPS_PORT}"
GIMP_SOCKET_HOST: "${GIMP_SOCKET_HOST}"
GIMP_SOCKET_PORT: "${GIMP_SOCKET_PORT}"
volumes:
- ./resources/gimp_cfg/:/config/.config/GIMP/3.${GIMP3_VERSION_MINOR}/
- ./src/gimp-plugin/src/gimp_mcp_plugin:/config/.config/GIMP/3.${GIMP3_VERSION_MINOR}/plug-ins/gimp_mcp_plugin
ports:
- ${GIMP_HTTP_PORT}:${GIMP_HTTP_PORT}
- ${GIMP_HTTPS_PORT}:${GIMP_HTTPS_PORT}
- ${GIMP_SOCKET_PORT}:${GIMP_SOCKET_PORT}
restart: unless-stopped
networks:
- gimp-backend
mcp:
container_name: mcp-gimp3-server
build:
context: ./
dockerfile: ./src/mcp-server/Dockerfile
target: mcp-server
env_file:
- "environments/.env"
ports:
- ${MCP_GIMP_PORT}:${MCP_GIMP_PORT}
develop:
watch:
- path: ./src/mcp-server/pyproject.toml
action: rebuild
depends_on:
- gimp
networks:
- gimp-backend
tty: true
stdin_open: true
api:
extends:
service: mcp
container_name: mcp-gimp3-api
build:
target: api-server
stubs-gen:
container_name: gimp-stubs-gen
build:
context: ./src/stubs-generator
dockerfile: ./Dockerfile
target: gimp3-stubs
args:
GIMP3_VERSION_MINOR: "${GIMP3_VERSION_MINOR}"
GIMP3_VERSION_PATCH: "${GIMP3_VERSION_PATCH}"
env_file:
- environments/.env
volumes:
- ${GIMP_STUB_OUT_PATH}:/tmp/gimp-stub-out/
networks:
- gimp-backend
tty: true
stdin_open: true
networks:
gimp-backend:
driver: bridge