-
Notifications
You must be signed in to change notification settings - Fork 114
/
docker-compose.yml
43 lines (43 loc) · 1.13 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
version: "3.8"
services:
database:
image: mongo
container_name: mongo
restart: always
environment:
MONGO_INITDB_ROOT_USERNAME: black
MONGO_INITDB_ROOT_PASSWORD: b1234
express:
image: mongo-express
container_name: express
restart: always
ports:
- "8081:8081"
environment:
ME_CONFIG_BASICAUTH_USERNAME: admin
ME_CONFIG_BASICAUTH_PASSWORD: admin123
ME_CONFIG_MONGODB_SERVER: mongo_DB
ME_CONFIG_MONGODB_ADMINUSERNAME: black
ME_CONFIG_MONGODB_ADMINPASSWORD: b1234
pro:
build: ./eje_1
container_name: pro
depends_on:
- db
restart: on-failure
volumes:
- type: bind
source: ./eje_1
target: /usr/src/app
app:
build: ./eje_2
container_name: app
depends_on:
- db
ports:
- "5000:5000"
restart: on-failure
volumes:
- type: bind
source: ./eje_2
target: /usr/src/app