services:
  producer:
    image: qmcgaw/gluetun:v3.40.0
    cap_add:
      - NET_ADMIN
    environment:
      - VPN_SERVICE_PROVIDER=${VPN_SERVICE_PROVIDER}
      - OPENVPN_USER=${OPENVPN_USER}
      - OPENVPN_PASSWORD=${OPENVPN_PASSWORD}
      - SERVER_COUNTRIES=${SERVER_COUNTRIES}
  consumer:
    depends_on:
      - producer
    image: nginx:1.27.4
    network_mode: "service:producer"
    labels:
      - "com.centurylinklabs.watchtower.depends-on=/wt-contnet-producer-1"
