46 lines
888 B
YAML
46 lines
888 B
YAML
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
|
|
volumes:
|
|
- ./wg0.conf:/etc/wireguard/wg0.conf
|
|
networks:
|
|
- wg-net
|
|
ports:
|
|
- "5205:5205"
|
|
restart: always
|
|
|
|
web:
|
|
build: .
|
|
container_name: flask-dev
|
|
volumes:
|
|
- .:/app
|
|
environment:
|
|
- FLASK_DEBUG=1
|
|
- PYTHONUNBUFFERED=1
|
|
network_mode: "service:wg-client"
|
|
depends_on:
|
|
- wg-client
|
|
restart: always
|
|
|
|
networks:
|
|
wg-net:
|
|
driver: bridge |