code-server/docker-compose.yml

30 lines
780 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
2024-06-25 20:40:04 +02:00
hostname: code-server
2023-11-04 14:45:12 +01:00
networks:
- reverse_proxy
2024-06-25 20:40:04 +02:00
- code_server_services
2023-11-04 14:45:12 +01:00
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:
2024-06-25 20:16:38 +02:00
constraints: [node.hostname == sh-hugo]
2023-11-04 14:45:12 +01:00
resources:
limits:
cpus: "4.0"
memory: 4096M
networks:
reverse_proxy:
2024-06-25 20:40:04 +02:00
external: true
code_server_services:
2023-11-04 14:45:12 +01:00
external: true