Skip to content

Commit 9f40860

Browse files
committed
consistent app name, fix mongo setup in docker-compose
1 parent afe94da commit 9f40860

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

backend/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ func main() {
3535
}
3636
setupLog(opts.Debug)
3737

38-
log.Printf("[INFO] started ureadability service %s", revision)
38+
log.Printf("[INFO] started ukeeper-readability service %s", revision)
3939
db, err := datastore.New(opts.MongoURI, opts.MongoDB, opts.MongoDelay)
4040
if err != nil {
4141
log.Fatalf("[ERROR] can't connect to mongo %v", err)

docker-compose.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ services:
1616
- mongo
1717

1818
environment:
19-
- MONGO_URI=mongodb://root:Squid3kIc6Dew4ad8Ci5
19+
- MONGO_URI=mongodb://root:Squid3kIc6Dew4ad8Ci5@mongo:27017
2020
- MONGO_DELAY=10s
2121
- CREDS=test:l4!AzQVW1dSN0T^7IJGn&Kr!kwRSF2P1
2222

@@ -35,14 +35,15 @@ services:
3535
container_name: ureadability-mongo
3636

3737
# uncomment to make mongo available for tests
38-
ports:
39-
- "27017:27017"
38+
#ports:
39+
# - "27017:27017"
4040

4141
environment:
4242
- MONGO_INITDB_DATABASE=admin
43-
# uncomment port and comment the next two lines to have mongodb ready for tests,
44-
# by running `ENABLE_MONGO_TESTS=true go test ./...`
45-
# - MONGO_INITDB_ROOT_USERNAME=root
46-
# - MONGO_INITDB_ROOT_PASSWORD=Squid3kIc6Dew4ad8Ci5
43+
# comment the next two lines to have mongodb ready for tests,
44+
# then start them by running
45+
# `ENABLE_MONGO_TESTS=true go test ./...`
46+
- MONGO_INITDB_ROOT_USERNAME=root
47+
- MONGO_INITDB_ROOT_PASSWORD=Squid3kIc6Dew4ad8Ci5
4748
volumes:
4849
- /tmp/mongodb:/data/db

0 commit comments

Comments
 (0)