forked from SamSpiri/infra-workspace
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
25 lines (24 loc) · 1.01 KB
/
docker-compose.yml
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
version: '2.1'
services:
main:
environment:
USERNAME: "${USERNAME:?run only with a ./start.sh. because variables are defined there.}"
UID: "${xUID:?run only with a ./start.sh. because variables are defined there.}"
GID: "${xGID:?run only with a ./start.sh. because variables are defined there.}"
GID_DOCKER: "${xGID_DOCKER:?run only with a ./start.sh. because variables are defined there.}"
SSH_AUTH_SOCK: /ssh-agent
PATH: "$MY_PATH/../bin:$MY_PATH/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:$MY_HOMEPATH/.local/bin"
WORKDIR: "$MY_PATH/../"
EDITOR: nano
build:
context: .
cap_add:
- IPC_LOCK
volumes:
- "~:$MY_HOMEPATH"
- "$SSH_AUTH_SOCK:/ssh-agent"
- "/mnt:/mnt"
- "/etc/hosts:/etc/hosts"
- "/home/$USERNAME/.bash_history:/home/$USERNAME/.bash_history"
- "/var/run/docker.sock:/var/run/docker.sock"
container_name: "${CONTAINER_NAME:?run only with a ./start.sh. because variables are defined there.}"