2022-04-26 18:30:12 -07:00
|
|
|
version: "3.8"
|
2022-10-09 22:40:49 -07:00
|
|
|
|
2021-01-15 07:41:34 -08:00
|
|
|
services:
|
|
|
|
code-server:
|
|
|
|
image: ghcr.io/linuxserver/code-server
|
|
|
|
container_name: ${Name}
|
|
|
|
environment:
|
|
|
|
- PUID=${PUID}
|
|
|
|
- PGID=${PGID}
|
|
|
|
- TZ=${TZ}
|
|
|
|
- PASSWORD=${Password}
|
|
|
|
# in container files directory
|
|
|
|
# - USER_DATA_DIR=/config/workspace
|
|
|
|
volumes:
|
|
|
|
- ${Config}:/config
|
|
|
|
- ${Files}:/config/workspace
|
2022-10-09 22:40:49 -07:00
|
|
|
- ${Deploy}:/config/workspace/.deploy
|
2021-01-15 07:41:34 -08:00
|
|
|
ports:
|
|
|
|
- ${Port}:8443
|
|
|
|
restart: unless-stopped
|
2022-10-09 22:40:49 -07:00
|
|
|
|
|
|
|
networks:
|
|
|
|
# networks indentation moved to top level
|
|
|
|
default:
|
|
|
|
name: ${Name}
|