-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdocker-compose.yml
40 lines (39 loc) · 1.01 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
version: '3'
services:
media-manager:
build:
context: .
dockerfile: Dockerfile
restart: always
container_name: media-manager
volumes:
- "${DIR}/files:${FILES_DIR}"
env_file:
- ".env"
environment:
- NODE_ENV=production
- MONGO_URL=mongodb://mongodb/media-manager
- ACCOUNT_NAME
- ACCOUNT_PASSWORD
- DEMO
- EXPOSED_PORT
networks:
- webappnetwork
depends_on:
- mongodb
command: sh -c './bin/wait-for mongodb:27017 -t 20 -- node ./dist/server/index.js'
ports:
- "${EXPOSED_PORT}:${PORT}"
image: podgorniy/media-manager
mongodb:
image: mongo:4.2
restart: always
container_name: mongodb
volumes:
- '${DIR}/db:/data/db'
command: mongod --noauth
networks:
- webappnetwork
networks:
webappnetwork:
driver: bridge