[fix] network

This commit is contained in:
Andy Bunce 2021-11-10 22:19:52 +00:00
parent fc46d690ad
commit bbea5991b4

View file

@ -1,23 +1,18 @@
--- ---
version: "2.1" version: "2.1"
services: services:
code-server: code-server:
image: ghcr.io/linuxserver/code-server:version-v3.12.0 image: ghcr.io/linuxserver/code-server:version-v3.12.0
container_name: code-server container_name: code-server
environment: environment:
- PUID=1000 - PUID=1000
- PGID=1000 - PGID=1000
- TZ=Europe/London - TZ=Europe/London
- SUDO_PASSWORD=password #optional - SUDO_PASSWORD=password #optional
- SUDO_PASSWORD_HASH= #optional - SUDO_PASSWORD_HASH= #optional
volumes: volumes:
- ./config:/config - ./config:/config
- /var/run/docker.sock:/var/run/docker.sock:ro - /var/run/docker.sock:/var/run/docker.sock:ro
ports: ports:
- 8443:8443 - 8443:8443
restart: unless-stopped restart: unless-stopped
networks:
default:
external:
name: swag_default