code-server/docker-compose.yml
Sven Heidemann 6b1716a524
Some checks failed
Deploy on push / on-push-deploy_sh-edraft (push) Failing after 24s
Added build action
2023-11-04 14:45:12 +01:00

27 lines
597 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.role == manager]
resources:
reservations:
cpus: "0.1"
memory: 20M
limits:
cpus: "4.0"
memory: 4096M
networks:
reverse_proxy:
external: true