forked from steveyegge/gastown
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
37 lines (35 loc) · 952 Bytes
/
docker-compose.yml
File metadata and controls
37 lines (35 loc) · 952 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
# Run with
# GIT_USER="<your name>" GIT_EMAIL="<your email>" FOLDER="/Users/you/code" docker compose up --build -d
services:
gastown:
build:
context: .
dockerfile: Dockerfile
args:
GIT_USER: ${GIT_USER:-TestUser}
GIT_EMAIL: ${GIT_EMAIL:-test@example.com}
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
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
- ${FOLDER}:${FOLDER}
ports:
- "3000:3000"
command: sleep infinity
# Exec into the container with: docker compose exec gastown zsh