-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
27 lines (26 loc) · 801 Bytes
/
docker-compose.yml
File metadata and controls
27 lines (26 loc) · 801 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
services:
container:
build:
context: ./ # Use the current directory as the build context
dockerfile: Dockerfile
image: ${IMAGE_NAME}
hostname: ${CONTAINER_NAME}
container_name: ${CONTAINER_NAME}
environment:
- REPO_NAME=${REPO_NAME}
working_dir: /home/user/${REPO_NAME}
volumes:
- ./:/home/user/${REPO_NAME}
- ${HOME}/.gitconfig:/home/user/.gitconfig
- ${HOME}/.ssh:/home/user/.ssh
- ${HOME}/.zsh_history:/home/user/.zsh_history
- ${HOME}/.kattisrc:/home/user/.kattisrc
cap_add:
- ALL
privileged: true # Grant full privileges to the container
ports:
- 8888:8888
command: [ "sh", "-c", "sudo chown user --recursive /home/user; zsh && tail -f /dev/null" ]
networks:
default:
driver: bridge