-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
57 lines (50 loc) · 1.2 KB
/
docker-compose.yml
File metadata and controls
57 lines (50 loc) · 1.2 KB
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.8'
services:
mongo:
container_name: mongo
image: mongo
ports:
- '27017:27017'
environment:
- MONGO_INITDB_ROOT_USERNAME=${ROOT_USER}
- MONGO_INITDB_ROOT_PASSWORD=${ROOT_PASS}
- MONGO_INITDB_DATABASE=${DB_NAME}
- MONGO_INITDB_USER=${DB_USERNAME}
- MONGO_INITDB_PWD=${DB_PASSWORD}
volumes:
- ./mongo-entrypoint/:/docker-entrypoint-initdb.d/
- data-db:/data/db/
networks:
- mongo-db-network
mongo-express:
container_name: mongo-express
image: mongo-express
restart: always
ports:
- '8081:8081'
environment:
- ME_CONFIG_MONGODB_SERVER=mongo
- ME_CONFIG_MONGODB_PORT=27017
- ME_CONFIG_MONGODB_AUTH_DATABASE=${DB_NAME}
- ME_CONFIG_MONGODB_AUTH_USERNAME=${DB_USERNAME}
- ME_CONFIG_MONGODB_AUTH_PASSWORD=${DB_PASSWORD}
networks:
- mongo-db-network
landing:
container_name: landing
build:
context: .
volumes:
- './landing:/app'
- '/app/node_modules'
ports:
- 80:80
stdin_open: true
environment:
- CHOKIDAR_USEPOLLING=true
networks:
mongo-db-network:
driver: bridge
# nginx-proxy:
volumes:
data-db: