wstkeys/docker-compose.yml

50 lines
1014 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

services:
nginx:
image: nginx:latest
container_name: nginx
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx/conf.d:/etc/nginx/conf.d
- ./nginx/certbot/www:/var/www/certbot
- ./nginx/certbot/conf:/etc/letsencrypt
extra_hosts:
- "host.docker.internal:host-gateway"
restart: always
wg-client:
image: ghcr.io/linuxserver/wireguard
container_name: wg-client
cap_add:
- NET_ADMIN
- SYS_MODULE
environment:
- PUID=1000
- PGID=1000
- TZ=Europe/Amsterdam
volumes:
- ./wg:/config
networks:
- wg-net
restart: always
web:
build: .
container_name: flask-dev
volumes:
- .:/app
environment:
- FLASK_DEBUG=1
- PYTHONUNBUFFERED=1
network_mode: "service:wg-client"
ports:
- "5205:5205" # ⚠️ не работает с network_mode: service:wg-client
depends_on:
- wg-client
restart: always
networks:
wg-net:
driver: bridge