[fix] network
This commit is contained in:
		
							parent
							
								
									fc46d690ad
								
							
						
					
					
						commit
						bbea5991b4
					
				
					 1 changed files with 18 additions and 23 deletions
				
			
		| 
						 | 
				
			
			@ -1,23 +1,18 @@
 | 
			
		|||
---
 | 
			
		||||
version: "2.1"
 | 
			
		||||
services:
 | 
			
		||||
  code-server:
 | 
			
		||||
    image: ghcr.io/linuxserver/code-server:version-v3.12.0
 | 
			
		||||
    container_name: code-server
 | 
			
		||||
    environment:
 | 
			
		||||
      - PUID=1000
 | 
			
		||||
      - PGID=1000
 | 
			
		||||
      - TZ=Europe/London
 | 
			
		||||
      - SUDO_PASSWORD=password #optional
 | 
			
		||||
      - SUDO_PASSWORD_HASH= #optional
 | 
			
		||||
    volumes:
 | 
			
		||||
      - ./config:/config
 | 
			
		||||
      - /var/run/docker.sock:/var/run/docker.sock:ro
 | 
			
		||||
    ports:
 | 
			
		||||
      - 8443:8443
 | 
			
		||||
    restart: unless-stopped
 | 
			
		||||
 | 
			
		||||
networks:
 | 
			
		||||
      default:
 | 
			
		||||
        external:
 | 
			
		||||
          name: swag_default
 | 
			
		||||
---
 | 
			
		||||
version: "2.1"
 | 
			
		||||
services:
 | 
			
		||||
  code-server:
 | 
			
		||||
    image: ghcr.io/linuxserver/code-server:version-v3.12.0
 | 
			
		||||
    container_name: code-server
 | 
			
		||||
    environment:
 | 
			
		||||
      - PUID=1000
 | 
			
		||||
      - PGID=1000
 | 
			
		||||
      - TZ=Europe/London
 | 
			
		||||
      - SUDO_PASSWORD=password #optional
 | 
			
		||||
      - SUDO_PASSWORD_HASH= #optional
 | 
			
		||||
    volumes:
 | 
			
		||||
      - ./config:/config
 | 
			
		||||
      - /var/run/docker.sock:/var/run/docker.sock:ro
 | 
			
		||||
    ports:
 | 
			
		||||
      - 8443:8443
 | 
			
		||||
    restart: unless-stopped
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue