-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
58 lines (54 loc) · 1.56 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
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"
command: npm start
# ----------------------------------------------
# ------------------ 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