Skip to content

Instantly share code, notes, and snippets.

@minetaro12
Last active January 16, 2023 05:23
Show Gist options
  • Select an option

  • Save minetaro12/cf0ee2223d891fbc001ae6b3440cf8d0 to your computer and use it in GitHub Desktop.

Select an option

Save minetaro12/cf0ee2223d891fbc001ae6b3440cf8d0 to your computer and use it in GitHub Desktop.

Revisions

  1. minetaro12 revised this gist Jan 16, 2023. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion docker-compose.yml
    Original file line number Diff line number Diff line change
    @@ -12,4 +12,7 @@ services:
    ports:
    - 8080:8080
    volumes:
    - ./coder:/home/coder
    - coder:/home/coder

    volumes:
    coder:
  2. minetaro12 revised this gist Feb 27, 2022. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion docker-compose.yml
    Original file line number Diff line number Diff line change
    @@ -3,7 +3,7 @@ services:
    code:
    image: ghcr.io/minetaro12/code-server:amd64-latest
    # image: ghcr.io/minetaro12/code-server:arm64-latest #arm64
    container_name: code-server
    hostname: code-server
    restart: unless-stopped
    environment:
    TZ: "Asia/Tokyo"
  3. minetaro12 revised this gist Feb 27, 2022. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions docker-compose.yml
    Original file line number Diff line number Diff line change
    @@ -3,6 +3,7 @@ services:
    code:
    image: ghcr.io/minetaro12/code-server:amd64-latest
    # image: ghcr.io/minetaro12/code-server:arm64-latest #arm64
    container_name: code-server
    restart: unless-stopped
    environment:
    TZ: "Asia/Tokyo"
  4. minetaro12 revised this gist Feb 25, 2022. 1 changed file with 13 additions and 0 deletions.
    13 changes: 13 additions & 0 deletions nginx-code-server.conf
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    server {
    listen 443 ssl http2;
    server_name example.com;
    ssl_certificate /etc/letsencrypt/live/example.com/fullchain.pem;
    ssl_certificate_key /etc/letsencrypt/live/example.com/privkey.pem;
    location / {
    proxy_set_header Host $host;
    proxy_pass http://127.0.0.1:8080;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection upgrade;
    proxy_set_header Accept-Encoding gzip;
    }
    }
  5. minetaro12 revised this gist Feb 25, 2022. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion docker-compose.yml
    Original file line number Diff line number Diff line change
    @@ -4,7 +4,8 @@ services:
    image: ghcr.io/minetaro12/code-server:amd64-latest
    # image: ghcr.io/minetaro12/code-server:arm64-latest #arm64
    restart: unless-stopped
    # environment:
    environment:
    TZ: "Asia/Tokyo"
    # PASSWORD: "password"
    user: "1001:1001" #ホストユーザーのuid,gidを設定
    ports:
  6. minetaro12 renamed this gist Feb 25, 2022. 1 changed file with 0 additions and 0 deletions.
  7. minetaro12 created this gist Feb 25, 2022.
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    version: "3"
    services:
    code:
    image: ghcr.io/minetaro12/code-server:amd64-latest
    # image: ghcr.io/minetaro12/code-server:arm64-latest #arm64
    restart: unless-stopped
    # environment:
    # PASSWORD: "password"
    user: "1001:1001" #ホストユーザーのuid,gidを設定
    ports:
    - 8080:8080
    volumes:
    - ./coder:/home/coder