Skip to content

Instantly share code, notes, and snippets.

@igk1972
Last active January 27, 2020 15:59
Show Gist options
  • Save igk1972/746112909c59b3355bf7fe15576f192b to your computer and use it in GitHub Desktop.
Save igk1972/746112909c59b3355bf7fe15576f192b to your computer and use it in GitHub Desktop.
version: '3.7'
services:
code:
image: codercom/code-server:v2
networks:
- ingress
volumes:
- "home:/home/coder"
- "projects:/home/coder/workspace"
- "/var/run/docker.sock:/var/run/docker.sock"
deploy:
replicas: 1
resources:
limits:
memory: 2000M
restart_policy:
condition: on-failure
environment:
PASSWORD: MySuperPass
ports:
- target: 8080
published: 9999
mode: host
volumes:
home:
name: code_home
external: true
project:
name: code_project
external: true
networks:
ingress:
name: ingress_code
external: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment