version: '3' services: mariadb: container_name: mariadb image: mariadb:10.4 networks: - backend restart: always volumes: - ${DIR}/mariadb:/var/lib/mysql environment: - MYSQL_ROOT_PASSWORD=${MYSQL_PASSWORD} - MYSQL_DATABASE=wordpress phpmyadmin: image: phpmyadmin/phpmyadmin:latest networks: - backend - frontend ports: - 8000:80 environment: - PMA_ARBITRARY=1 - PMA_HOST=mariadb postgres: container_name: postgres image: postgres restart: always networks: - backend environment: - TZ=${TZ} - POSTGRES_USER=${POSTGRES_USER} - POSTGRES_PASSWORD=${POSTGRES_PASSWORD} volumes: - ${DIR}/postgres/data:/var/lib/postgresql/data - ${DIR}/shared:/shared pgadmin4: container_name: pgadmin4 image: dpage/pgadmin4 restart: always ports: - "8003:80" networks: - backend environment: - PGADMIN_DEFAULT_EMAIL=${PGADMIN_DEFAULT_EMAIL} - PGADMIN_DEFAULT_PASSWORD=${PGADMIN_DEFAULT_PASSWORD} #- PUID=${PUID} #- PGID=${PGID} #- TZ=${TZ} volumes: - ${DIR}/pgadmin4:/root/.pgadmin #- ${DIR}/pgadmin4:/var/lib/pgadmin wordpress: image: wordpress environment: - WORDPRESS_DB_PASSWORD=${MYSQL_PASSWORD} networks: - backend - frontend ports: - 8002:80 volumes: - ${DIR}/wp:/var/www/html links: - mariadb:mysql ttrss: image: wangqiru/ttrss:latest container_name: ttrss ports: - 8001:80 environment: - SELF_URL_PATH=http://localhost:8001/ # please change to your own domain - DB_HOST=POSTGRES - DB_PORT=5432 - DB_NAME=ttrss - DB_USER=root - DB_PASS=qwerty # please change the password - ENABLE_PLUGINS=auth_internal,fever # auth_internal is required. Plugins enabled here will be enabled for all users as system plugins stdin_open: true tty: true restart: always command: sh -c 'sh /wait-for.sh $$DB_HOST:$$DB_PORT -- php /configure-db.php && exec s6-svscan /etc/s6/' networks: - backend - frontend networks: frontend: external: true backend: external: false