-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yaml
51 lines (49 loc) · 1 KB
/
docker-compose.yaml
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
version: '3.8'
services:
catalog:
build:
context: .
dockerfile: Dockerfile
container_name: sd-catalog-backend
image: sd-catalog-backend:latest
restart: unless-stopped
environment:
MONGODB_DATABASE: "sda_catalog"
MONGODB_HOSTNAME: mongodb
MONGODB_USERNAME: admin
MONGODB_PASSWORD: admin
ports:
- "5000:5000"
volumes:
- appdata:/home/www
depends_on:
- mongodb
networks:
- frontend
- backend
mongodb:
image: mongo
container_name: mongodb
restart: unless-stopped
environment:
MONGO_INITDB_ROOT_USERNAME: admin
MONGO_INITDB_ROOT_PASSWORD: admin
MONGO_INITDB_DATABASE: sda_catalog
MONGODB_DATA_DIR: /data/db
MONGODB_LOG_DIR: /dev/null
ports:
- 27017:27017
volumes:
- mongodbdata:/data/db
networks:
- backend
networks:
frontend:
driver: bridge
backend:
driver: bridge
volumes:
appdata:
driver: local
mongodbdata:
driver: local