forked from gastownhall/gastown
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
44 lines (41 loc) · 1.15 KB
/
Copy pathdocker-compose.yml
File metadata and controls
44 lines (41 loc) · 1.15 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
# 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
# Dolt data on a proper ext4 volume (not the macOS bind mount) to
# avoid journal corruption from VirtioFS fsync semantics.
- dolt-data:/gt/.dolt-data
ports:
- "${DASHBOARD_PORT:-8080}:8080"
command: sleep infinity
# Exec into the container with: docker compose exec gastown zsh
volumes:
agent-home:
dolt-data: