-
Notifications
You must be signed in to change notification settings - Fork 65
/
Copy pathdocker-compose.yml
38 lines (37 loc) · 903 Bytes
/
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
# Beetube services
services:
beetube-bot:
container_name: beetube
build: ./
user: "node"
command: npm run dev
working_dir: /home/src/beetube
restart: on-failure
depends_on:
- database
env_file:
- ./.env
links:
- database
volumes:
- ./:/home/src/beetube
- ./docker/tmp:/tmp
- ./docker/tmp:/home/node/.npm
# Database
database:
container_name: database
image: mongo:latest
restart: on-failure
ports:
- 27017:27017
env_file:
- ./.env
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: password
MONGO_INITDB_USERNAME: ${MONGODB_USER}
MONGO_INITDB_PASSWORD: ${MONGODB_PASSWORD}
MONGO_INITDB_DATABASE: ${MONGODB_DB_NAME}
volumes:
- ./docker/mongo/init.sh:/docker-entrypoint-initdb.d/init.sh
- ./docker/mongo/data:/data/db