forked from scale8/scale8-tag-manager-and-analytics
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
50 lines (47 loc) · 1.94 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
version: "3.7"
services:
mongodb:
image: mongo:4.4
# for testing with mongo running as a replica set. this is useful for transaction support.
# command: --replSet rs0
# once started, it needs to be configured
# start the DB server - example: -
# docker-compose up -d mongodb && sh -c 'while ! mongo --eval "db.version()" > /dev/null 2>&1; do sleep 0.1; done' && mongo --username=s8-admin --password=s8-admin --host=127.0.0.1 --port=27017 --eval 'rs.initiate()'
container_name: mongodb
expose:
- "27017"
edge:
image: scale8/edge:latest
container_name: edge
depends_on:
- mongodb
expose:
- "6080"
environment:
# To connect to a local version of MongoDB, use mongodb://host.docker.internal .
MONGO_CONNECT_STRING: "mongodb://mongodb"
# The API server - required for generating live previews. Here we refer to the 'api' server as defined below.
S8_API_SERVER: "http://api:8082"
# The root server refers to the entry point of the network. In this example, we are using the 'route' defined below.
S8_ROOT_SERVER: "http://127.0.0.1:8080"
# Proxy a platform's live build in. PROXY_FOR can be either be 'core' or the platform id associated with the platform.
# PROXY_FOR: "core"
# PROXY_LOCATION: "http://host.docker.internal:3124/main.js"
api:
image: scale8/api:latest
container_name: api
depends_on:
- mongodb
expose:
- "8082"
environment:
# To connect to a local version of MongoDB, use mongodb://host.docker.internal .
MONGO_CONNECT_STRING: "mongodb://mongodb"
router:
image: scale8/router:latest
container_name: router
depends_on:
- edge
- api
ports:
- "8080:80"