version: "3"
services:
  subconverter:
    image: stilleshan/sub
    container_name: sub
    ports:
      - 18080:80
    volumes:
      - ./conf:/usr/share/nginx/html/conf
    restart: always

  myurls:
    image: stilleshan/myurls:latest
    # container_name: myurls
    environment:
      - MYURLS_DOMAIN=s.ops.ci
      - MYURLS_PROTO=https
    volumes:
      - ./data/myurls/logs:/app/logs    
    ports:
      - "8080:8080"
    depends_on:
      - redis
    restart: always

  redis:
    image: redis:latest
    # container_name: myurls-redis
    volumes:
      - ./data/redis:/data
    restart: always
