Skip to content

Instantly share code, notes, and snippets.

@ngerakines
Created January 26, 2025 16:08
Show Gist options
  • Save ngerakines/cd9d5970bc9722f242f70ff419cfc0d1 to your computer and use it in GitHub Desktop.
Save ngerakines/cd9d5970bc9722f242f70ff419cfc0d1 to your computer and use it in GitHub Desktop.
{
"dockerComposeFile": [
"docker-compose.yml"
],
"service": "devcontainer",
"workspaceFolder": "/workspace",
}
version: '3.8'
volumes:
aviary_data:
aviary_ts:
aviary_tls:
aviary_sccache:
services:
devcontainer:
image: mcr.microsoft.com/devcontainers/rust:1-1-bullseye
network_mode: service:tailscale
volumes:
- ../..:/workspace:cached
- aviary_sccache:/sccache
command: sleep infinity
environment:
- TS_NET_NAME=bowfin-woodpecker.ts.net
- RUSTC_WRAPPER=sccache
- SCCACHE_DIR=/sccache
- RUST_LOG=debug
- RUST_BACKTRACE=1
- RUST_LIB_BACKTRACE=1
- HTTP_PORT=3000
tailscale:
image: tailscale/tailscale:latest
restart: unless-stopped
environment:
- TS_STATE_DIR=/var/run/tailscale
- TS_EXTRA_ARGS=--advertise-tags=tag:aviary
- TS_HOSTNAME=aviary
volumes:
- aviary_tls:/mnt/tls
- aviary_ts:/var/run/tailscale
nginx:
image: nginx
restart: unless-stopped
network_mode: service:tailscale
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
- aviary_tls:/mnt/tls:ro
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment