version: '3'

services:
  reverseproxy:
    image: reverseproxy
    ports:
      - 80:80
    restart: always

  app:
    image: appleseed/leaves
    ports:
      - "81:9000"
    depends_on:
      - reverseproxy

  topic:
    image: appleseed/leaves.topic
    ports:
      - "82:3000"
    depends_on:
      - reverseproxy

  wallabag:
    image: wallabag/wallabag
    env_file:
      - ./environment.dev.yml
    ports:
      - "100:80"
    depends_on:
      - reverseproxy
    volumes:
      - ./wallabag_dev/wallabag_images:/var/www/wallabag/web/assets/images

  db:
    image: mariadb
    command: 
      --character_set_client=utf8 --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci --character-set-client-handshake=FALSE
    env_file:
      - ./environment.dev.yml
    volumes:
      - ./wallabag_dev/wallabag_mysql:/var/lib/mysql

  phpmyadmin:
    image: phpmyadmin/phpmyadmin
    links:
      - db:db
    ports:
      - "83:80"
    depends_on:
      - reverseproxy

