Deploiement - Gestionnaire de packages
Jump to navigation
Jump to search
Compositions docker
Tous les composants de notre application ont été packagés dans des containeurs dockers. Tous ces containeurs sont disponible sur Dockerhub
Backend-controller
docker-compose.yml
version: '2'
services:
# -------------------------------------------
# ------------------ Sails ------------------
# -------------------------------------------
# sails container
sails:
image: packebian/backend-controller:stable
tty: true
ports:
- "1337:1337"
links:
- "mongodb:mongodb"
environment:
# Sails
SAILS_SECRET: "c9693b2d5572ffd96a79cae6a8453d57"
# Mongo
MONGO_HOST: "mongodb"
MONGO_PORT: "27017"
MONGO_DB: "packebian"
MONGO_USER: "packebian"
MONGO_PASS: "packebian123"
# Auth0
AUTH0_SECRET: "secret"
AUTH0_ALGO: "HS256"
AUTH0_ENDPOINT: "https://packebian.eu.auth0.com"
# JWT
JWT_SECRET: "secret"
JWT_LIFE: 3600
JWT_ALGO: "HS256"
JWT_ISSUER: "packebian.com"
JWT_AUDIENCE: "packebian.com"
# ----------------------------------------------
# ------------------ Database ------------------
# ----------------------------------------------
# Mongodb
mongodb:
build: ./builds/mongo
tty: true
restart: always
volumes:
- "mongoVolume:/data/db"
ports:
- "27017:27017"
environment:
ADMIN_USER: "root"
ADMIN_PASS: "mongdb123"
MONGO_DB: "packebian"
MONGO_USER: "packebian"
MONGO_PASS: "packebian123"
volumes:
mongoVolume:
driver: local
Frontend
docker-compose.yml
version: '2'
services:
# -------------------------------------------
# ----------------- Angular -----------------
# -------------------------------------------
# sails container
frontend:
image: packebian/frontend:stable
tty: true
ports:
- "9000:9000"
- "35729:35729"
environment:
API_URL: "http://192.168.99.100:1337" # URL to backend-controller API