Skip to content

Commit f84e917

Browse files
authored
feat: Enhance docker compose template (#130)
1 parent 53a3966 commit f84e917

3 files changed

Lines changed: 28 additions & 24 deletions

File tree

.dockerignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
backend/bin
2+
backend/data
3+
backend/.env
4+
frontend/node_modules
5+
frontend/dist
6+
frontend/.tanstack

docker-compose.dev.yml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,34 @@
1+
name: orca-cd-dev
2+
13
services:
24
hub:
35
build:
46
context: .
57
dockerfile: hub.Dockerfile
6-
container_name: orca-hub
8+
container_name: orca-hub-dev
79
ports:
810
- '127.0.0.1:8080:8080'
9-
restart: unless-stopped
11+
volumes:
12+
- ./data/hub:/app/data
1013
environment:
1114
- APP_URL=http://localhost:8080
1215
- APP_SECRET=supersecretkey_minimum_32_characters
13-
volumes:
14-
- ./data/hub:/app/data
1516

1617
agent:
1718
build:
1819
context: .
1920
dockerfile: agent.Dockerfile
20-
container_name: orca-agent
21-
restart: unless-stopped
21+
container_name: orca-agent-dev
22+
use_api_socket: true # Allows container to access Docker API on host
2223
depends_on:
2324
- hub
24-
volumes:
25-
- /var/run/docker.sock:/var/run/docker.sock
2625
environment:
2726
- HUB_URL=ws://hub:8080/api/v1/ws
28-
- AUTH_TOKEN=supersecrettoken
27+
- AUTH_TOKEN=
2928

3029
pocket-id:
31-
container_name: pocket-id
30+
container_name: pocket-id-dev
3231
image: ghcr.io/pocket-id/pocket-id:v2
33-
restart: unless-stopped
3432
ports:
3533
- 127.0.0.1:1411:1411
3634
volumes:

docker-compose.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,26 @@ services:
22
hub:
33
image: ghcr.io/orcacd/hub:latest # Replace with your actual image version tag
44
container_name: orca-hub
5-
ports:
6-
- '127.0.0.1:8080:8080'
75
restart: unless-stopped
86
env_file: .env
7+
security_opt:
8+
- no-new-privileges:true
9+
cap_drop:
10+
- ALL
11+
ports:
12+
- '127.0.0.1:8080:8080'
913
volumes:
1014
- ./data/hub:/app/data
11-
# Optional healthcheck
12-
healthcheck:
13-
test: [ "CMD", "/app/hub", "healthcheck" ]
14-
interval: 1m30s
15-
timeout: 5s
16-
retries: 2
17-
start_period: 10s
1815

1916
agent:
2017
image: ghcr.io/orcacd/agent:latest # Replace with your actual image version tag
2118
container_name: orca-agent
2219
restart: unless-stopped
23-
depends_on:
20+
env_file: .env
21+
security_opt:
22+
- no-new-privileges:true
23+
cap_drop:
24+
- ALL
25+
use_api_socket: true # Allows container to access Docker API on host
26+
depends_on: # Remove this if you are only deploying the agent on a host without the hub
2427
- hub
25-
volumes:
26-
- /var/run/docker.sock:/var/run/docker.sock
27-
env_file: .env

0 commit comments

Comments
 (0)