Skip to content

Instantly share code, notes, and snippets.

@tranphuoctien
Last active October 31, 2018 02:55
Show Gist options
  • Save tranphuoctien/063b79d21518a0db74355b0448fceeec to your computer and use it in GitHub Desktop.
Save tranphuoctien/063b79d21518a0db74355b0448fceeec to your computer and use it in GitHub Desktop.
Brazn Deploy docker
version: '3'
services:
# The Application
brazn-php:
image: restaff/brazn-php
working_dir: /var/www
#env_file: ./conf/web/.env
volumes:
- /var/www/storage
environment:
DB_HOST: brazn-mysql
DB_DATABASE: loxley_db
DB_USERNAME: root
DB_PASSWORD: 123123
REDIS_HOST: redis
MONGODB_HOST: brazn-mongo
MONGODB_USERNAME: root
MONGODB_DATABASE: psim
MONGODB_PASSWORD: 123123
depends_on:
- redis
- brazn-mongo
- brazn-mysql
tty: true
# The Web Server
web:
image: restaff/brazn-nginx
environment:
DB_HOST: brazn-mysql
DB_DATABASE: loxley_db
DB_USERNAME: root
DB_PASSWORD: 123123
ports:
- 80:80
logging:
driver: "json-file"
options:
max-size: "200k"
max-file: "10"
depends_on:
- brazn-php
- brazn-mysql
# Brazn Nodejs
brazn-service:
image: restaff/brazn-service
container_name: brazn-service
depends_on:
- redis
- brazn-mongo
- brazn-mysql
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'
# Brazn mysql for php had init database
brazn-mysql:
image: restaff/brazn-mysql
container_name: brazn-mysql
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
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"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment