-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
50 lines (46 loc) · 1005 Bytes
/
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.1'
volumes:
mongodb:
data:
services:
traefik:
image: traefik:1.7
container_name: traefik
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- ./traefik/traefik.toml:/etc/traefik/traefik.toml:ro
- ./traefik/acme:/etc/traefik/acme
ports:
- "80:80"
- "443:443"
- "8000:8080"
restart: always
marshal:
build: .
volumes:
- data:/data
expose:
- "4000"
links:
- mongo:ztf_variable_marshal_mongo_1
restart: always
depends_on:
- mongo
labels:
- "traefik.enable=true"
- "traefik.basic.frontend.rule=Host:skipper.caltech.edu"
- "traefik.basic.port=4000"
- "traefik.basic.protocol=http"
mongo:
image: mongo
expose:
- "27017"
# fixme:
ports:
- "27025:27017"
environment:
- MONGO_INITDB_ROOT_USERNAME=mongoadmin
- MONGO_INITDB_ROOT_PASSWORD=mongoadminsecret
volumes:
- mongodb:/data/db
restart: always