version: "3.0"

services:
  web:
    image: u8.pub/uetchy/uechi.io
    restart: unless-stopped
    container_name: uechiio
    environment:
      VIRTUAL_HOST: uechi.io,www.uechi.io
      LETSENCRYPT_HOST: uechi.io,www.uechi.io
    volumes:
      - "./data:/var/www/html/_:ro"
    labels:
      com.centurylinklabs.watchtower.enable: "true"

  cron:
    image: u8.pub/uetchy/uechi.io
    command: /usr/sbin/crond -d 8 -f
    restart: unless-stopped
    container_name: uechiio-cron
    volumes:
      - "./data:/var/www/html/_"
      - "./periodic/daily:/etc/periodic/daily:ro"
    labels:
      com.centurylinklabs.watchtower.enable: "true"

networks:
  default:
    name: webproxy
    external: true