-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
44 lines (44 loc) · 975 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
39
40
41
42
43
44
version: '3'
services:
nginx:
build:
context: .
dockerfile: client.dockerfile
ports:
- "80:80"
links:
- server
server:
build:
context: .
dockerfile: server.dockerfile
ports:
- "5000:5000"
links:
- mongo
mongo:
image: mongo
container_name: mongodb
environment:
- MONGO_INITDB_DATABASE=pismo
- MONGO_INITDB_ROOT_USERNAME=root
- MONGO_INITDB_ROOT_PASSWORD=root
volumes:
- ./mongo-volume:/data/db
ports:
- '27017-27019:27017-27019'
mongo-express:
container_name: mongo-express
image: mongo-express
links:
- mongo
environment:
- ME_CONFIG_MONGODB_SERVER=mongo
- ME_CONFIG_MONGODB_ADMINUSERNAME=root
- ME_CONFIG_MONGODB_ADMINPASSWORD=root
- ME_CONFIG_BASICAUTH_USERNAME=levch
- ME_CONFIG_BASICAUTH_PASSWORD=ubuntu
ports:
- '8081:8081'
volumes:
- ./data:/data/db