Skip to content

Instantly share code, notes, and snippets.

@buggy
Created October 25, 2021 04:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save buggy/b2fa8d1d184fef55634032e5868c3e60 to your computer and use it in GitHub Desktop.
Save buggy/b2fa8d1d184fef55634032e5868c3e60 to your computer and use it in GitHub Desktop.
docker-compose.yml
version: "3.8"
services:
openvpn-client:
image: ghcr.io/wfg/openvpn-client
container_name: openvpn-client
cap_add:
- NET_ADMIN
devices:
- /dev/net/tun
environment:
- KILL_SWITCH=off
volumes:
- /home/ubuntu/wink-ovpn:/data/vpn
# - $PWD/wink-ovpn:/data/vpn
restart: unless-stopped
ports:
- "9000:9000"
- "9001:9001"
cpus: 0.1
mem_limit: 50MB
wink-api-ca:
image: $REPO/bailey-nelson/wink-api:latest
# build: .
environment:
DOTNET_ENVIRONMENT: Production
ASPNETCORE_ENVIRONMENT: Production
LOG_LEVEL: ERROR
WINK_COUNTRY: ca
ASPNETCORE_URLS: "http://0.0.0.0:9000"
network_mode: service:openvpn-client
volumes:
- /home/ubuntu/wink-api.ca.json:/run/secrets/wink-api.json
# - $PWD/env/wink-api.ca.json:/run/secrets/wink-api.json
depends_on:
- openvpn-client
cpus: 1.8
mem_limit: 1.9G
wink-api-gb:
image: $REPO/bailey-nelson/wink-api:latest
# build: .
environment:
DOTNET_ENVIRONMENT: Production
ASPNETCORE_ENVIRONMENT: Production
LOG_LEVEL: ERROR
WINK_COUNTRY: gb
ASPNETCORE_URLS: "http://0.0.0.0:9001"
network_mode: service:openvpn-client
volumes:
- /home/ubuntu/wink-api.gb.json:/run/secrets/wink-api.json
# - $PWD/env/wink-api.ca.json:/run/secrets/wink-api.json
depends_on:
- openvpn-client
cpus: 1.8
mem_limit: 1.9G
networks:
default:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment