-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
executable file
·48 lines (45 loc) · 1.17 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Installation: https://hub.docker.com/r/linuxserver/code-server
services:
codeserver:
image: wolflith/vscode:latest
build:
context: .
dockerfile: dockerfile
container_name: codeserver
hostname: codeserver
environment:
- PUID=${CODE_SERVER_PUID}
- PGID=${CODE_SERVER_PGID}
- TZ=${CODE_SERVER_TZ}
- SUDO_PASSWORD=${CODE_SERVER_SUDO_PASSWORD:?error}
- DEFAULT_WORKSPACE=${CODE_SERVER_SERVER_DEFAULT_WORKSPACE}
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /opt/appdata/codeserver/config:/config
- ./Wolflith.code-workspace:/config/workspace/Wolflith.code-workspace
- /opt:/repos
- /mnt:/mnt
- /home:/home
ports:
- 1007:8443
restart: unless-stopped
depends_on:
- dockersocketvscode
networks:
- proxy
dockersocketvscode:
container_name: dockersocketvscode
image: tecnativa/docker-socket-proxy
volumes:
- /var/run/docker.sock:/var/run/docker.sock
networks:
- proxy
environment:
CONTAINERS: 1
POST: 0
privileged: true
restart: unless-stopped
networks:
proxy:
driver: bridge
external: true