mirror of
https://github.com/Viren070/docker-compose-template.git
synced 2025-12-01 23:17:00 +01:00
40 lines
789 B
YAML
40 lines
789 B
YAML
services:
|
|
gluetun:
|
|
image: qmcgaw/gluetun
|
|
container_name: gluetun
|
|
restart: unless-stopped
|
|
cap_add:
|
|
- NET_ADMIN
|
|
devices:
|
|
- /dev/net/tun:/dev/net/tun
|
|
env_file:
|
|
- .env
|
|
volumes:
|
|
- ${DOCKER_DATA_DIR}/gluetun:/gluetun
|
|
healthcheck:
|
|
test: ["CMD", "/gluetun-entrypoint", "healthcheck"]
|
|
interval: 60s
|
|
timeout: 5s
|
|
retries: 3
|
|
start_period: 1m
|
|
profiles:
|
|
- gluetun
|
|
- all
|
|
|
|
# Use Gost as a proxy because its better.
|
|
gost:
|
|
image: ginuerzh/gost
|
|
container_name: gost
|
|
restart: unless-stopped
|
|
network_mode: service:gluetun
|
|
command: "-L :8080"
|
|
depends_on:
|
|
gluetun:
|
|
condition: service_healthy
|
|
restart: true
|
|
profiles:
|
|
- gluetun
|
|
- all
|
|
|
|
|