Skip to content

Commit 8c6c0e7

Browse files
fixed mongo startup, added data dir to gitignore
1 parent 3a1ee04 commit 8c6c0e7

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
*.swp
44
~*
55
venv
6+
data

docker-compose.yml

+10-4
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ services:
66
container_name: mongo
77
image: mongo
88
restart: always
9+
environment:
10+
MONGO_INITDB_ROOT_USERNAME: root
11+
MONGO_INITDB_ROOT_PASSWORD: example
12+
volumes:
13+
- ./data:/data/db
914

1015
mongo-express:
1116
container_name: mongo-express
@@ -16,14 +21,15 @@ services:
1621
environment:
1722
ME_CONFIG_OPTIONS_EDITORTHEME: "ambiance"
1823
ME_CONFIG_MONGODB_SERVER: "mongo"
24+
ME_CONFIG_MONGODB_ENABLE_ADMIN: "true"
25+
ME_CONFIG_MONGODB_ADMINUSERNAME: "root"
26+
ME_CONFIG_MONGODB_ADMINPASSWORD: "example"
1927
ME_CONFIG_BASICAUTH_USERNAME: "user"
2028
ME_CONFIG_BASICAUTH_PASSWORD: "long password"
2129

22-
scraper:
30+
logger:
2331
container_name: logger
24-
image: logger
32+
image: ghcr.io/nameless-coder/factory-production-logger:latest
2533
restart: always
26-
build:
27-
context: .
2834
ports:
2935
- 8000:8000

0 commit comments

Comments
 (0)