-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
61 lines (60 loc) · 1.95 KB
/
Copy pathdocker-compose.yml
File metadata and controls
61 lines (60 loc) · 1.95 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
# Dev container stack. Compose publishes ports on the host (more reliable than
# devcontainer forwardPorts in some setups). Interpolation vars (SSH_PORT, etc.)
# can be set in `.devcontainer/.env` (see `.devcontainer/.env.example`).
#
# Internal SSH: devcontainers `sshd` feature listens on 2222, not 22 — map host:2222.
#
# Explicit DNS: containers on external networks (e.g. `dev`) sometimes get no working resolver
# and `uv pip` fails with "dns error" / "failed to lookup address information".
# Override in `.devcontainer/.env`: DEVCONTAINER_DNS_1 / DEVCONTAINER_DNS_2.
services:
devcontainer:
build:
context: ..
dockerfile: .devcontainer/Dockerfile
dns:
- "${DEVCONTAINER_DNS_1:-1.1.1.1}"
- "${DEVCONTAINER_DNS_2:-8.8.8.8}"
env_file:
- ../.env
environment:
# Avoid ~/.cache/uv (often root-owned after sshd/common-utils); workspace is bind-mounted as vscode.
UV_CACHE_DIR: /workspaces/project/.uv-cache
SELENIUM_REMOTE_URL: ${SELENIUM_REMOTE_URL:-http://gme-selenium-firefox:4444}
ports:
- "${SSH_PORT:-2222}:2222"
- "${APP_PORT:-1234}:1234"
- "${DEV_PORT:-8888}:8888"
volumes:
- ..:/workspaces/project:cached
command: sleep infinity
networks:
- dev
gme-qdrant:
image: qdrant/qdrant:latest
container_name: gme-qdrant
ports:
- "6333:6333"
- "6334:6334"
volumes:
- ../data/qdrant/storage:/qdrant/storage
restart: unless-stopped
networks:
- dev
# README "Option B": multi-session standalone Firefox (ORCID, Selenium-backed tools).
gme-selenium-firefox:
image: selenium/standalone-firefox
container_name: gme-selenium-firefox
ports:
- "${SELENIUM_GRID_PORT:-4444}:4444"
- "${SELENIUM_VNC_PORT:-7900}:7900"
shm_size: "2g"
environment:
SE_NODE_MAX_SESSIONS: "5"
SE_NODE_SESSION_TIMEOUT: "300"
restart: unless-stopped
networks:
- dev
networks:
dev:
external: true