Skip to content

Instantly share code, notes, and snippets.

@tranphuoctien
Created October 31, 2018 06:58
Show Gist options
  • Save tranphuoctien/6898814e3b04772899a8372d06ab2c7a to your computer and use it in GitHub Desktop.
Save tranphuoctien/6898814e3b04772899a8372d06ab2c7a to your computer and use it in GitHub Desktop.
Restaff brazn test docker compose
version: '3'
services:
# Brazn PHP
brazn-php:
build:
context: .
dockerfile: prod.app.dockerfile
image: restaff/brazn-php-dev
restart: always
container_name: brazn-php-dev
depends_on:
- brazn-mysql-dev
- redis
- brazn-mongo-dev
environment:
DB_HOST: brazn-mysql
MONGODB_HOST: brazn-mongo
MONGODB_USERNAME: root
MONGODB_DATABASE: psim
MONGODB_PASSWORD: 123123
VIRTUAL_HOST: loxley.local
APP_URL: loxley.local
working_dir: /var/www
volumes:
- /var/www/storage
# Brazn Nodejs
brazn-service:
build: ./brazn-service
image: restaff/brazn-service-dev
container_name: brazn-service-dev
depends_on:
- redis
- brazn-mongo-dev
- brazn-mysql-dev
environment:
- VIRTUAL_HOST=brazn-service.local
- REDIS_DOCKER_IS=true
- REDIS_DOCKER_HOST=redis
- DB_HOST=brazn-mysql
ports:
- '1883:1883'
- '3883:3883'
- '5683:5683'
- '1980:80'
- '19443:443'
- '19898:8989'
# Brazn mysql for php had init database
brazn-mysql:
build:
context: .
dockerfile: prod.database.dockerfile
image: restaff/brazn-mysql-dev
container_name: brazn-mysql-dev
restart: always
environment:
- MYSQL_ROOT_USER=root
- MYSQL_ROOT_PASSWORD=123123
- MYSQL_DATABASE=loxley_db
ports:
- '33012:3306'
# Brazn mongodb
brazn-mongo:
image: bitnami/mongodb:latest
container_name: brazn-mongo-dev
restart: always
ports:
- "27019:27017"
environment:
- MONGODB_USERNAME=root
- MONGODB_PASSWORD=123123
- MONGODB_DATABASE=psim
- MONGODB_ROOT_PASSWORD=123123
# Redis
redis:
image: redis
ports:
- "6380:6379"
# web php for init
web:
build:
context: .
dockerfile: prod.web.dockerfile
image: restaff/brazn-nginx-dev
restart: always
container_name: brazn-nginx-dev
depends_on:
- brazn-php-dev
ports:
- "80:80"
volumes:
backup:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment