code-server/docker-compose.yml

26 lines
683 B
YAML
Raw Normal View History

2023-11-04 14:45:12 +01:00
version: "3.7"
services:
code_server:
2023-12-09 20:12:42 +01:00
image: git.sh-edraft.de/sh-edraft.de/code-server:latest
2023-11-04 14:45:12 +01:00
networks:
- reverse_proxy
volumes:
- /opt/code_server/.local:/home/coder/.local
- /opt/code_server/.config:/home/coder/.config
- /opt/code_server/projects:/home/coder/projects
2023-11-28 09:50:04 +01:00
- /opt/code_server/.gitconfig:/home/coder/.gitconfig
- /opt/code_server/.git-credentials:/home/coder/.git-credentials
2023-11-04 14:45:12 +01:00
deploy:
mode: replicated
replicas: 1
placement:
2023-11-27 19:19:07 +01:00
constraints: [node.hostname == sh-gismo]
2023-11-04 14:45:12 +01:00
resources:
limits:
cpus: "4.0"
memory: 4096M
networks:
reverse_proxy:
external: true