-
-
Notifications
You must be signed in to change notification settings - Fork 55
/
Copy pathdocker-compose.template.yml
34 lines (32 loc) · 1.02 KB
/
docker-compose.template.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
services:
mirotalkwebrtc:
image: mirotalk/webrtc:latest
container_name: mirotalkwebrtc
hostname: mirotalkwebrtc
volumes:
- .env:/src/.env:ro
- ./backend/config.js:/src/backend/config.js:ro
# Optional volumes for real-time updates:
# - ./backend/:/src/backend/:ro
# - ./frontend/:/src/frontend/:ro
restart: unless-stopped
ports:
- '${SERVER_PORT}:${SERVER_PORT}'
links:
- mongodb
mongodb:
image: mongo:latest
container_name: mirotalkmongodb
restart: unless-stopped
environment:
MONGO_INITDB_ROOT_USERNAME: ${MONGO_USERNAME}
MONGO_INITDB_ROOT_PASSWORD: ${MONGO_PASSWORD}
MONGO_INITDB_DATABASE: ${MONGO_DATABASE}
ports:
- '${MONGO_PORT}:${MONGO_PORT}'
volumes:
- './.mongodb_data:/data/db'
command: mongod --quiet --logpath /dev/null
volumes:
mongodb_data:
driver: local