Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
2.0 kB
2
Indexable
Never
version: '3'

services:
    php:
        image: docker-registry.kaliop.net/thermor-pro/sitepro-php:7.4
        container_name: php
        user: ${FIXUID:-1000}:${FIXGID:-1000}
        volumes:
            - ./:/home/site/app/www:rw
            - ~/.gitconfig:/home/site/.gitconfig:ro
        networks:
            - app
        depends_on:
            - apache
        ports:
            - 8000:8000

    apache:
        container_name: apache
        image: httpd:2.4
        volumes:
            - ./:/home/site/app/www:rw
            - ./docker/config/apache/httpd.conf:/usr/local/apache2/conf/httpd.conf:ro
            - ./docker/config/apache/vhost.conf:/usr/local/apache2/conf/vhost.conf:ro
        ports:
            - 80:80
        networks:
            - app

    mysql:
        container_name: mysql
        image: mariadb:10.4
        environment:
            MYSQL_ROOT_PASSWORD: site
            MYSQL_DATABASE: site
            MYSQL_USER: site
            MYSQL_PASSWORD: site
        volumes:
            - app_mysql_data:/var/lib/mysql
        ports:
            - 3306:3306
        networks:
            - app

    redis:
        container_name: redis
        image: redis:5.0
        networks:
            - app

    solr:
        container_name: solr
        image: docker-registry.kaliop.net/thermor-pro/sitepro-solr:8.11.1
        ports:
            - 8983:8983
        volumes:
            - app_solr_data:/opt/solr/server/ez/app/data
        networks:
            - app

    varnish:
        image: docker-registry.kaliop.net/thermor-pro/sitepro-varnish:6.0
        container_name: varnish
        ports:
            - 45080:80
        depends_on:
            - apache
        networks:
            - app

    mailcatcher:
        image: schickling/mailcatcher
        container_name: mailcatcher
        ports:
            - 1080:1080
        networks:
            - app

volumes:
    app_mysql_data:
        driver: local
    app_solr_data:
        driver: local

networks:
    app: