-
Notifications
You must be signed in to change notification settings - Fork 970
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (37 loc) · 996 Bytes
/
docker-compose.yml
File metadata and controls
40 lines (37 loc) · 996 Bytes
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
# Run with
# GIT_USER="<your name>" GIT_EMAIL="<your email>" FOLDER="/Users/you/code" docker compose up -d
services:
gastown:
build:
context: .
dockerfile: Dockerfile
container_name: gastown-sandbox
stdin_open: false
tty: false
security_opt:
- no-new-privileges:true
cap_drop:
- ALL
cap_add:
- CHOWN
- SETUID
- SETGID
- DAC_OVERRIDE
- FOWNER
- NET_RAW
environment:
IS_SANDBOX: 1
GIT_USER: ${GIT_USER:-TestUser}
GIT_EMAIL: ${GIT_EMAIL:-test@example.com}
volumes:
# FOLDER must be defined in .env file, e.g. FOLDER=/home/user
# or provided as an environment variable when running docker compose,
# e.g. FOLDER=/home/user docker compose up
- agent-home:/home/agent
- ${FOLDER}:/gt
ports:
- "${DASHBOARD_PORT:-8080}:8080"
command: sleep infinity
# Exec into the container with: docker compose exec gastown zsh
volumes:
agent-home: