Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: '2'
- services:
- web:
- build:
- context: ./
- dockerfile: web.docker
- volumes:
- - ./:/var/www
- ports:
- - "8000:80"
- links:
- - php
- php:
- build:
- context: ./
- dockerfile: php.docker
- volumes:
- - ./:/var/www
- links:
- - app
- app:
- build:
- context: ./
- dockerfile: app.docker
- volumes:
- - ./:/var/www
- links:
- - db
- environment:
- - "DB_PORT=3306"
- - "DB_HOST=database"
- # ports:
- # - "9000:123"
- db:
- image: mysql:5.7
- restart: always
- environment:
- - MYSQL_ROOT_PASSWORD=secret
- - MYSQL_DATABASE=dockerApp
- - MYSQL_USER=user
- - MYSQL_PASSWORD=password
- ports:
- - "33061:3306"
- adminer:
- image: adminer
- restart: always
- ports:
- - 8001:8080
- supervisord:
- build:
- context: ./
- dockerfile: supervisord.docker
- rabbitmq:
- image: rabbitmq:3.7.5
- build:
- context: ./
- dockerfile: rabbitmq.docker
- ports:
- - "5600:5672"
- - "15001:15671" # https webpanel
- - "15002:15672" # http webpanel
- privileged: true
- environment:
- - RABBITMQ_DEFAULT_USER=user
- - RABBITMQ_DEFAULT_PASS=password
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement