docker-compose.yml 1.15 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
version: "3.7"

services:
  php:
    build:
      context: './build/docker/php/'
      args:
       PHP_VERSION: ${PHP_VERSION}
    depends_on:
     - mysql
    networks:
      - ra-lauck-dev
    volumes:
      - data-htdocs-acp3-sync:/var/www/html/:nocopy
    container_name: php-acp3
    environment:
      - ACP3_APPLICATION_MODE=dev

  apache:
    build:
      context: './build/docker/apache/'
      args:
       APACHE_VERSION: ${APACHE_VERSION}
    depends_on:
      - php
    networks:
      - ra-lauck-dev
    ports:
      - "80:80"
    volumes:
      - ./build/docker/apache/vhost.conf:/usr/local/apache2/conf/sites-enabled/vhost.conf:ro
      - data-htdocs-acp3-sync:/var/www/html/:nocopy
    container_name: apache-acp3

  mysql:
    image: mysql:${MYSQL_VERSION:-latest}
    networks:
      - ra-lauck-dev
    volumes:
      - data-mysql-acp3:/var/lib/mysql/
      - ./build/docker/mysql/dump:/docker-entrypoint-initdb.d
    environment:
      - MYSQL_DATABASE=acp3
      - MYSQL_ROOT_PASSWORD=
      - MYSQL_ALLOW_EMPTY_PASSWORD=yes
    container_name: mysql-acp3

volumes:
  data-htdocs-acp3-sync:
    external: true
  data-mysql-acp3:

networks:
  ra-lauck-dev: