forked from Planet-Pioneers/node-webapp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
50 lines (47 loc) · 939 Bytes
/
docker-compose.yml
File metadata and controls
50 lines (47 loc) · 939 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
version: "3.8"
services:
mongodb:
image: mongo
restart: unless-stopped
env_file: .env
ports:
- $MONGODB_LOCAL_PORT:$MONGODB_DOCKER_PORT
privileged: true
volumes:
- db:/data/db
networks:
- my_network
r-backend:
build: ./openeocubes
container_name: r-backend
ports:
- "8000:8000"
restart: always
environment:
- TZ=Etc/UTC
- DEBIAN_FRONTEND=noninteractive
- AWSHOST=r-backend
networks:
- my_network
app:
depends_on:
- mongodb
build: .
restart: unless-stopped
env_file: .env
ports:
- $NODE_LOCAL_PORT:$NODE_DOCKER_PORT
environment:
- DB_HOST=mongodb
- DB_NAME=$MONGODB_DATABASE
- DB_PORT=$MONGODB_DOCKER_PORT
- OPENEOCUBES_URI=http://r-backend:8000
stdin_open: true
tty: true
networks:
- my_network
volumes:
db:
networks:
my_network:
driver: bridge