-
Notifications
You must be signed in to change notification settings - Fork 13
/
docker-compose.yml
59 lines (54 loc) · 1.5 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
59
# This docker-compose file starts up a Emissary server where you
# can "kick the tires" and see how it works. You should probably
# not use this in production.
#
# It defaults to serving one domain "localhost" on port 8080.
name: emissary_demo
services:
# This is the Emissary server that runs a single "localhost" domain on port 8080.
# It runs on http://localhost:8080
server:
container_name: emissary_demo_server
build:
context: .
dockerfile: ./.docker/demo-dockerfile
ports:
- "8080:8080"
environment:
- EMISSARY_CONFIG=file:///data/config/config.json
depends_on:
- mongodb
volumes:
- config:/data/config
- uploads:/data/uploads
# The setup tool creates/modifies the server configuration,
# although you probably won't have to use it much for this demo.
# It runs on http://localhost:8888
setup:
container_name: emissary_demo_setup
build:
context: .
dockerfile: ./.docker/demo-dockerfile
ports:
- "8888:8888"
environment:
- EMISSARY_CONFIG=file:///data/config/config.json
command: ["--setup", "--port", "8888"]
depends_on:
- mongodb
- server
volumes:
- config:/data/config
# This mongo database stores data for the Emissary site.
# You can connect to it using any MongoDB client.
mongodb:
container_name: emissary_demo_database
image: "mongo:latest"
ports:
- "27017:27017"
volumes:
- mongo:/data/db
volumes:
config:
mongo:
uploads: