-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
58 lines (52 loc) · 1.28 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
services:
ureadability:
build: .
image: umputun/ukeeper-readability:latest
logging:
driver: json-file
options:
max-size: "20m"
max-file: "5"
hostname: ureadability
restart: always
container_name: ureadability
links:
- mongo
environment:
- MONGO_URI=mongodb://root:Squid3kIc6Dew4ad8Ci5@mongo:27017
- MONGO_DELAY=10s
- CREDS=admin:jpm6AQH!kbx2tvk!fqc
#- OPENAI_KEY=insert_key_here
ports:
- "8080:8080"
mongo:
image: mongo:5.0
logging:
driver: json-file
options:
max-size: "20m"
max-file: "5"
hostname: mongo
restart: always
container_name: ureadability-mongo
environment:
- MONGO_INITDB_DATABASE=admin
- MONGO_INITDB_ROOT_USERNAME=root
- MONGO_INITDB_ROOT_PASSWORD=Squid3kIc6Dew4ad8Ci5
volumes:
- /tmp/mongodb:/data/db
# uncomment the lines below to have mongodb ready for tests,
# then start them by running
# `ENABLE_MONGO_TESTS=true go test ./...`
# mongo-tests:
# image: mongo:5.0
# logging:
# driver: json-file
# options:
# max-size: "20m"
# max-file: "5"
# hostname: mongo-tests
# restart: always
# container_name: ureadability-mongo-tests
# ports:
# - "27017:27017"