-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
52 lines (48 loc) · 1.24 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
version: "3"
services:
localdb:
image: bitnami/mongodb:4.4.8
environment:
MONGODB_USERNAME: smearch
MONGODB_PASSWORD: secret
MONGODB_DATABASE: sme-search
ports:
- "${LOCAL_DB_PORT:-27717}:27017"
initializedb:
build: mock
environment:
PREVENT_EXIT: "${PREVENT_SERVICE_EXIT:-true}"
depends_on:
- localdb
healthcheck:
test: ["CMD", "nc", "-z", "127.0.0.1", "80"]
interval: 2s
timeout: 3s
retries: 3
start_period: 20s
sectoravg:
build: sector-average-service
environment:
NODE_ENV: development
ALLOW_CORS_ANY_ORIGIN: "true"
MONGO_USE_SRV: "false"
NO_COLOR: "y"
STAGE: dev
depends_on:
- localdb
ports:
- "${LOCAL_SECTOR_AVERAGE_SERVICE_PORT:-3003}:3003"
secrets:
- sector-average-service
client:
build: sme-public-profile-client
environment:
NODE_ENV: development
PUBLIC_VAR_CLIENT_ENV: "local"
PUBLIC_VAR_GOOGLE_ANALYTICS_ID: "x"
PUBLIC_VAR_SECTOR_AVERAGE_SERVICE_PROTO_DOMAIN: "${SECTOR_AVERAGE_SERVICE_PROTO_DOMAIN:-http://localhost:3003}"
ports:
- "${LOCAL_NEXTJS_PORT:-3000}:3000"
secrets:
sector-average-service:
file: ./local-stack-secrets.env