-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
57 lines (52 loc) · 1.23 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
45
46
47
48
49
50
51
52
53
54
55
56
57
version: "3.1"
services:
app:
container_name: h5p-lti-provider
depends_on:
- redis
- mongodb
working_dir: /home/node/app
ports:
- "${NODE_PORT}:${NODE_PORT}"
networks:
- myinternal
volumes:
- './content:/home/node/app/h5p/content:rw'
env_file: ./provider/.env
build:
context: ./provider
dockerfile: Dockerfile
command: npm run start
#keep container running
tty: true
stdin_open: true
redis:
image: "redis:alpine"
container_name: redis
ports:
- "${REDIS_PORT}:${REDIS_PORT}"
volumes:
- 'redis_data_volume:/data'
networks:
- myinternal
mongodb:
image: "mongodb/mongodb-community-server:latest"
container_name: mongodb
restart: unless-stopped
ports:
- "${MONGODB_PORT}:${MONGODB_PORT}"
environment:
MONGODB_INITDB_ROOT_USERNAME: ${MONGODB_USER}
MONGODB_INITDB_ROOT_PASSWORD: ${MONGODB_PASSWORD}
MONGODB_INITDB_DATABASE: ${MONGODB_DB}
volumes:
- 'mongodb_data_volume:/data/db'
- 'mongodb_dataconfig_volume:/data/configdb'
networks:
- myinternal
volumes:
redis_data_volume:
mongodb_data_volume:
mongodb_dataconfig_volume:
networks:
myinternal: