HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: //usr/local/bin/dhwp/docker-compose.yml
version: "3"
services:
    dhwp:
        image: "dhwp:dev"
        build:
            context: .
            dockerfile: Dockerfile
        stdin_open: true
        tty: true
        working_dir: '/build'
        user: dhwp
        volumes:
            - ./:/build
            - wordpress-stage:/wordpress/stage
            - wordpress-live:/wordpress/live
        environment:
            - PYTHONPATH=/build
            - ADDITIONAL_PATH=/build

    db:
        image: mysql:5.7
        restart: always
        ports:
          - "3306:3306"
        environment:
          MYSQL_ROOT_PASSWORD: password
          MYSQL_DATABASE: wordpress
          MYSQL_USER: wordpress
          MYSQL_PASSWORD: wordpress

    web:
        image: nginx:latest
        depends_on:
          - phplive
          - phpstage
        ports:
          - "8080:80"
        volumes:
          - wordpress-live:/var/www/html/live
          - wordpress-stage:/var/www/html/stage
          - ./docker/nginx.conf:/etc/nginx/conf.d/default.conf
        links:
          - phplive
          - phpstage

    phplive:
        image: "dhwp-php:dev"
        build:
            context: .
            dockerfile: Dockerfile.wordpress
        entrypoint: php-fpm
        volumes:
          - wordpress-live:/var/www/html
        links:
          - db

    phpstage:
        image: "dhwp-php:dev"
        build:
            context: .
            dockerfile: Dockerfile.wordpress
        entrypoint: php-fpm
        volumes:
          - wordpress-stage:/var/www/html
        links:
          - db

volumes:
  wordpress-stage:
  wordpress-live: