code-server/docker-compose.yml
Sven Heidemann 761e05672c
All checks were successful
Deploy on push / build (push) Successful in 22s
Deploy on push / on-push-deploy_sh-edraft (push) Successful in 4s
Updated stack
2024-06-25 18:40:04 +00:00

30 lines
780 B
YAML

version: "3.7"
services:
code_server:
image: git.sh-edraft.de/sh-edraft.de/code-server:latest
hostname: code-server
networks:
- reverse_proxy
- code_server_services
volumes:
- /opt/code_server/.local:/home/coder/.local
- /opt/code_server/.config:/home/coder/.config
- /opt/code_server/projects:/home/coder/projects
- /opt/code_server/.gitconfig:/home/coder/.gitconfig
- /opt/code_server/.git-credentials:/home/coder/.git-credentials
deploy:
mode: replicated
replicas: 1
placement:
constraints: [node.hostname == sh-hugo]
resources:
limits:
cpus: "4.0"
memory: 4096M
networks:
reverse_proxy:
external: true
code_server_services:
external: true