Skip to content

Instantly share code, notes, and snippets.

@annibuliful
Created March 24, 2018 07:01
Show Gist options
  • Save annibuliful/ca3c553b37d8fdeebd5bbdab3d80a062 to your computer and use it in GitHub Desktop.
Save annibuliful/ca3c553b37d8fdeebd5bbdab3d80a062 to your computer and use it in GitHub Desktop.
version: "2"
services:
backend:
build: './backend'
volumes:
- './backend:/app'
ports:
- "3030:3030"
links:
- mongodb
frontend:
build: './frontend'
volumes:
- './frontend:/app'
ports:
- "8080:8080"
depends_on:
- backend
admin:
build: './admin/'
volumes:
- './admin/:/app'
ports:
- "3034:3000"
nginx:
container_name: nginx
restart: always
image: nginx
ports:
- "80:80"
#- "443:443"
volumes:
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf
#- ./nginx/beewallet.access.log:/etc/nginx/log/beewallet.access.log
#- ./nginx/cert/private.key:/etc/nginx/cert/private.key
#- ./nginx/cert/public.cert:/etc/nginx/cert/public.cert
depends_on:
- frontend
- backend
- admin
mongodb:
restart: always
container_name: mongodb
volumes:
- ./mongo/data:/data/db
image: mongo
ports:
- "27017:27017"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment