-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
34 lines (33 loc) · 946 Bytes
/
docker-compose.yml
File metadata and controls
34 lines (33 loc) · 946 Bytes
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
services:
inventory-management-system-api:
container_name: inventory-management-system-api
build:
context: .
target: dev
volumes:
- ./inventory_management_system_api:/app/inventory_management_system_api
- ./keys/jwt-key.pub:/app/keys/jwt-key.pub
- ./logging.ini:/app/logging.ini
ports:
- 8000:8000
restart: on-failure
env_file:
- path: ./.env
depends_on:
- mongo-db
network_mode: "host"
mongo-db:
image: mongo:7.0-jammy
container_name: ims-api-mongodb
entrypoint: mongodb_entrypoint.sh
volumes:
- ./mongodb/data:/data/db
- ./scripts/setup.mongodb:/usr/local/bin/setup.mongodb:ro
- ./scripts/mongodb_entrypoint.sh:/usr/local/bin/mongodb_entrypoint.sh:ro
restart: always
ports:
- 27017:27017
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: example
network_mode: "host"