Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: '2'
- services:
- # == The database container ============================= #
- # It runs on the docker network dedicated to this project #
- # The environment variables are taken from the .env file #
- # The container volume and the MySQL ports are mapped to #
- # the local system in order to allow data persistency and #
- # network reachability from outside the docker network #
- # ======================================================= #
- mysql:
- restart: always
- build: ./docker/mysql
- volumes:
- - ${DB_PATH}:/var/lib/mysql
- environment:
- - MYSQL_ROOT_PASSWORD=${DB_ROOT_PASSWORD}
- - MYSQL_DATABASE=${DB_DATABASE}
- - MYSQL_USER=${DB_USERNAME}
- - MYSQL_PASSWORD=${DB_PASSWORD}
- network_mode: host
- ports:
- - 3321:${DB_PORT}
- # == The pom-ng container =============================== #
- # It sniffs all network traffic and parse the packets in #
- # order to find pictures, passwords and other things to #
- # display on the web interface. #
- # ======================================================= #
- pom-ng:
- restart: always
- build:
- context: ./docker/pom-ng
- args:
- - http_proxy=${ENV_PROXY_HTTP}
- - https_proxy=${ENV_PROXY_HTTPS}
- network_mode: host
- cap_add:
- - ALL
- tty: true
- stdin_open: true
- # == The web container ================================== #
- # It runs on the docker network dedicated to this project #
- # It will have to access the database container #
- # The container volume and the MySQL ports are mapped to #
- # the local system in order to allow data persistency and #
- # network reachability from outside the docker network #
- # Also, you can attach to it directly #
- # ======================================================= #
- php:
- restart: always
- build:
- context: ./docker/php
- args:
- - http_proxy=${ENV_PROXY_HTTP}
- - https_proxy=${ENV_PROXY_HTTPS}
- volumes:
- - .:/var/www/larawos
- depends_on:
- - mysql
- - pom-ng
- network_mode: host
- ports:
- - 8021:80
- tty: true
- stdin_open: true
- working_dir: /var/www/larawos
- # == The test container ================================= #
- # It runs a selenium chrome browser with no graphic #
- # interface and it is used to test the web project with #
- # laravel dusk. #
- # ======================================================= #
- selenium:
- restart: always
- image: selenium/standalone-chrome
- depends_on:
- - php
- network_mode: host
- tty: true
- stdin_open: true
- networks:
- main:
- ipam:
- config:
- - subnet: 192.168.21.0/24
- gateway: 192.168.21.1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement