-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
34 lines (34 loc) · 1.23 KB
/
docker-compose.yaml
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
version: '3.7'
services:
codeserver:
container_name: ${CODEUSER}_cs
image: frank30941/code-server
restart: unless-stopped
networks:
- netself
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- "v_cs:/config"
environment:
- PUID=${UID}
- PGID=${GID}
- CODEUSER=${CODEUSER}
- SUDO_PASSWORD=${SUDO_PASSWORD}
- PASSWORD=${PASSWORD}
- DOCKER_MODS=linuxserver/mods:code-server-docker
- TZ=Asia/Taipei
labels:
- traefik.enable=true
- "traefik.http.routers.domaintld-http.rule=${CODEDOMAINNAME}"
- traefik.http.routers.domaintld-http.entrypoints=http
- "traefik.http.routers.domaintld-https.rule=${CODEDOMAINNAME}"
- traefik.http.routers.domaintld-https.entrypoints=https
- traefik.http.routers.domaintld-http.middlewares=domaintld-redirect
- traefik.http.middlewares.domaintld-redirect.redirectscheme.scheme=https
- "traefik.http.routers.domaintld-https.tls.certresolver=${CODEUSER}"
volumes:
v_cs:
name: ${CODEUSER}_cs
networks:
netself:
name: ${CODEUSER}