-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.dev.yml
55 lines (53 loc) · 1.22 KB
/
docker-compose.dev.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
# Use root/example as user/password credentials
version: '3.1'
services:
# web:
# build: .
# image: choreme/web
# ports:
# - 3000:3000
# links:
# - mongo
# restart: always
# env_file:
# - .env
mongo:
# image: mongo
build:
context: .
dockerfile: Dockerfile.mongodb
image: choreme/mongo
environment:
MONGO_INITDB_ROOT_USERNAME: ${MONGO_USER}
MONGO_INITDB_ROOT_PASSWORD: ${MONGO_PASS}
MONGO_INITDB_DATABASE: ${MONGO_DB}
ports:
- "27017:27017"
volumes:
- "mongo-data:/data/db"
# - "$PWD/mongo-entrypoint/:/docker-entrypoint-initdb.d/"
env_file:
- .env.local
mongo-express:
image: mongo-express
depends_on:
- mongo
links:
- mongo
ports:
- 8081:8081
environment:
ME_CONFIG_MONGODB_ADMINUSERNAME: ${MONGO_USER}
ME_CONFIG_MONGODB_ADMINPASSWORD: ${MONGO_PASS}
ME_CONFIG_MONGODB_URL: mongodb://${MONGO_USER}:${MONGO_PASS}@host.docker.internal:27017/
env_file:
- .env.local
cron-job:
build:
context: .
dockerfile: Dockerfile.crontab
network_mode: "host"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
volumes:
mongo-data: