code-server/docker-compose.yml
Sven Heidemann dbd4611bac
All checks were successful
Deploy on push / on-push-deploy_sh-edraft (push) Successful in 8m50s
Improved docker
2023-11-27 19:19:07 +01:00

24 lines
536 B
YAML

version: "3.7"
services:
code_server:
image: sh-edraft.de/code-server:latest
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
deploy:
mode: replicated
replicas: 1
placement:
constraints: [node.hostname == sh-gismo]
resources:
limits:
cpus: "4.0"
memory: 4096M
networks:
reverse_proxy:
external: true