forked from clabroche/rhea
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
44 lines (42 loc) · 1.05 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
version: "2"
services:
watchtower:
image: containrrr/watchtower
labels:
com.centurylinklabs.watchtower.enable: "true"
restart: always
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
- ~/.docker/config.json:/config.json
command: --interval 10 --label-enable
rhea:
image: docker.pkg.github.com/clabroche/docker-registry/rhea:latest
hostname: rhea
restart: always
environment:
PORT: 9845
mongoDbURL: mongodb://root:apasswordtochange@mongodb/rhea?authSource=admin
labels:
com.centurylinklabs.watchtower.enable: "true"
expose:
- 9845
ports:
- 9875:9845
links:
- mongodb
mongodb:
image: mongo:4
hostname: mongodb
restart: always
expose:
- 27017
ports:
- 2075:27017
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: apasswordtochange
command: mongod --port 27017
volumes:
- ./mongo-volume:/data/db