-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
67 lines (59 loc) · 1.88 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
58
59
60
61
62
63
64
65
66
67
version: "3.6"
# network_mode: host for backend only to access it from lan or other etc.
services:
s_backend_core:
container_name: s_b_core
restart: unless-stopped
networks:
- backend_database
ports:
- 8090:8090
volumes:
- ./s_backend/s_b_core/logs:/usr/src/app/logs
build:
dockerfile: ./Dockerfile
context: ./s_backend/s_b_core/
depends_on:
- s_database
# environment:
# DATABASE_USER: db_root
# DATABASE_NAME: wavect
# DATABASE_HOST: 192.168.99.100
# DATABASE_PORT: 27017
# DATABASE_PWD: hQNde3ts92QUnNDKF2KMQDVfEmVshpHSsG7CgVxpyBxGDQeC3P2YnFrtnTwG
environment:
DATABASE_NAME: wavect
DATABASE_URI: mongodb://database:27017
# NOT WORKING ON WINDOWS AS VIRTUALBOX, MONGODB AND WINDOWS MAPPING DOES NOT WORK, thus this external volume declaration is necessary here
# CREATE VOLUME MANUALLY BEFORE: docker volume create --name=s_database_data
s_database:
restart: unless-stopped
image: mongo
container_name: s_database
ports:
- 27017:27017
volumes:
- s_database_data:/data/db
# - s_database_config:/data/configdb
# - ./s_database/startup/001_users.js:/docker-entrypoint-initdb.d/001_users.js:ro
networks:
- backend_database
#environment:
#MYSQL_ROOT_PASSWORD: bk6dRLYWw2duFDNgLX2tbDebFcGnPN
#MYSQL_DATABASE: wavect
#MYSQL_USER: mongodb
#MYSQL_PASSWORD: BC8WYWIpnGA2UG0Au8uQK9W6UQOG
# environment:
# MONGO_INITDB_ROOT_USERNAME: db_root
# MONGO_INITDB_ROOT_PASSWORD: hQNde3ts92QUnNDKF2KMQDVfEmVshpHSsG7CgVxpyBxGDQeC3P2YnFrtnTwG
# necessary see comments above
volumes:
s_database_data:
external: true
name: s_database_data
# s_database_config:
# external: true
# name: s_database_config
networks:
backend_database:
driver: bridge