blob: 8ec19e9d5eb678598ba2bbb15a18e3df3ed81cef (
plain) (
blame)
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
|
version: "3.8"
services:
web:
build: .
container_name: node-playground-server
depends_on:
- db
networks:
- node-playground-network
ports:
- "8080:8080"
restart: always
env_file: .env
environment:
DB_CONN: mongodb://db/playground_db
db:
image: mongo:4.4
container_name: node-playground-db
volumes:
- node-playground-db-data:/data/db
networks:
- node-playground-network
expose:
- "27017"
restart: always
volumes:
node-playground-db-data: {}
networks:
node-playground-network:
driver: bridge
|