-
Notifications
You must be signed in to change notification settings - Fork 50
/
docker-compose.yml
44 lines (40 loc) · 1.12 KB
/
docker-compose.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
version: '3.7'
services:
mongo: # Remove this if you are not using mongodb.
image: mongo:4.4.1
container_name: witsmlexplorer-mongodb
restart: unless-stopped
ports:
- 27017:27017
volumes:
- ./data:/data/db
environment:
- MONGO_INITDB_ROOT_USERNAME=<username> # Configure this
- MONGO_INITDB_ROOT_PASSWORD=<password> # Configure this
api:
image: witsmlexplorer-api:latest
restart: unless-stopped
container_name: witsmlexplorer-api
volumes:
- ./config.json:/app/config.json:ro #May be changed
depends_on: # Remove this if you are not using mongodb.
- mongo
links: # Remove this if you are not using mongodb.
- mongo:mongo
web:
image: witsmlexplorer-frontend:latest
restart: unless-stopped
container_name: witsmlexplorer-frontend
nginx:
image: nginx:1.21-alpine
restart: unless-stopped
container_name: witsmlexplorer-nginx
ports:
- 80:80
- 443:443
volumes:
- /data/nginx:/etc/nginx #May be changed
- /data/logs:/var/log/nginx #May be changed
depends_on:
- web
- api