51 lines
1.2 KiB
YAML
51 lines
1.2 KiB
YAML
# stack name : code-server
|
|
version: '3'
|
|
services:
|
|
code-server:
|
|
container_name: code
|
|
image: lscr.io/linuxserver/code-server:latest
|
|
environment:
|
|
- PUID=0
|
|
- PGID=0
|
|
- TZ=Europe/London
|
|
- PASSWORD=${CODESERVER_PASSWORD}
|
|
- DEFAULT_WORKSPACE=/config/workspace
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
- code-server_config:/config
|
|
- code-server_root:/root
|
|
- has_config:/mnt/has_config
|
|
- nginx_conf:/config/workspace/docker/nginx/volumes/nginx_conf
|
|
- ssl_data:/mnt/ssl_data
|
|
- mosquitto_config:/mnt/mosquitto_config
|
|
- zigbee2mqtt_data:/mnt/zigbee2mqtt_data
|
|
- hostfs:/mnt/hostfs
|
|
networks:
|
|
- code
|
|
- reverseproxy_public
|
|
ports:
|
|
- 8444:8443
|
|
restart: unless-stopped
|
|
volumes:
|
|
zigbee2mqtt_data:
|
|
name: zigbee2mqtt_data
|
|
external: true
|
|
code-server_config:
|
|
code-server_root:
|
|
has_config:
|
|
name: has_app_config
|
|
external: true
|
|
hostfs:
|
|
external: true
|
|
nginx_conf:
|
|
name: reverseproxy_nginx-conf.d
|
|
external: true
|
|
ssl_data:
|
|
name: reverseproxy_etc_ssl
|
|
external: true
|
|
mosquitto_config:
|
|
external: true
|
|
networks:
|
|
code:
|
|
reverseproxy_public:
|
|
external: true |