2023-07-06 13:49:46 +08:00
|
|
|
version: '3'
|
|
|
|
services:
|
2023-07-07 10:28:47 +08:00
|
|
|
code:
|
2023-07-06 13:49:46 +08:00
|
|
|
container_name: ${CONTAINER_NAME}
|
|
|
|
restart: always
|
|
|
|
networks:
|
|
|
|
- 1panel-network
|
|
|
|
ports:
|
|
|
|
- "${PANEL_APP_PORT_HTTP}:8443"
|
|
|
|
volumes:
|
2023-07-13 15:34:02 +08:00
|
|
|
- ./data:/config
|
2023-07-06 13:49:46 +08:00
|
|
|
environment:
|
|
|
|
- PUID=1000
|
|
|
|
- PGID=1000
|
|
|
|
- TZ=Asia/Shanghai
|
|
|
|
- PASSWORD=${WEB_PASSWORD}
|
|
|
|
- SUDO_PASSWORD=${SUDO_PASSWORD}
|
|
|
|
- DEFAULT_WORKSPACE=/config/workspace
|
2023-10-07 20:35:22 +08:00
|
|
|
image: linuxserver/code-server:4.17.1
|
2023-07-06 13:49:46 +08:00
|
|
|
labels:
|
|
|
|
createdBy: "Apps"
|
|
|
|
networks:
|
|
|
|
1panel-network:
|
|
|
|
external: true
|