version: "3.7"

services:
  app_proxy:
    environment:
      APP_HOST: $APP_IPFS_PODCASTING_IP
      APP_PORT: $APP_IPFS_PODCASTING_PORT

  web:
    image: ipfspodcasting/podcastnode:v0.6@sha256:773d7c34d452764be973e8bc495990ec47f8042287493997784198c64e924393
    init: true
    restart: on-failure
    stop_grace_period: 1m
    user: "1000:1000"
    ports:
      - ${APP_IPFS_PODCASTING_P2P_PORT}:4001  # IPFS
    volumes:
      - ${APP_DATA_DIR}/ipfs:/ipfs-podcasting/ipfs
      - ${APP_DATA_DIR}/cfg:/ipfs-podcasting/cfg
    networks:
      default:
        ipv4_address: $APP_IPFS_PODCASTING_IP