forked from HypePhilosophy/Akamai_Sensor_Generator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
44 lines (42 loc) · 854 Bytes
/
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:
app:
container_name: akamai-server-api
image: akamai-gen_app:latest
build:
context: .
dockerfile: Dockerfile
args:
- IMAGE_VERSION=latest
restart: always
environment:
MONGO_URI: ${MONGO_URI}
ADMIN_SECRET: ${ADMIN_SECRET}
ports:
- "80:3000"
networks:
- backend
depends_on:
- "mongodb"
links:
- mongodb
command: ["npm", "run", "server"]
mongodb:
container_name: mongo
restart: always
image: mongo:latest
environment:
MONGO_URI: ${MONGO_URI}
MONGO_INITDB_DATABASE: ${MONGO_INITDB_DATABASE}
volumes:
- mongodb:/data/db
- mongodb_config:/data/configdb
networks:
- backend
ports:
- "27017:27017"
networks:
backend:
volumes:
mongodb:
mongodb_config: