forked from fga-eps-mds/2024.1-CALCULUS-UserService
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
53 lines (50 loc) · 1.2 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
services:
user-api:
container_name: user-api
restart: on-failure
env_file:
- .env
build:
context: .
dockerfile: Dockerfile
image: user-api
ports:
- "3000:3000"
networks:
- arandu-network
depends_on:
- mongo
mongo:
image: mongo
restart: always
env_file:
- .env
environment:
MONGO_INITDB_ROOT_USERNAME: ${MONGO_INITDB_ROOT_USERNAME}
MONGO_INITDB_ROOT_PASSWORD: ${MONGO_INITDB_ROOT_PASSWORD}
ports:
- "27017:27017"
command: ["--quiet"]
networks:
- arandu-network
mongo-express:
image: mongo-express
restart: always
env_file:
- .env
environment:
ME_CONFIG_MONGODB_ADMINUSERNAME: ${ME_CONFIG_MONGODB_ADMINUSERNAME}
ME_CONFIG_MONGODB_ADMINPASSWORD: ${ME_CONFIG_MONGODB_ADMINPASSWORD}
ME_CONFIG_MONGODB_URL: ${MONGODB_URI}
ME_CONFIG_BASICAUTH: ${ME_CONFIG_BASICAUTH}
ME_CONFIG_BASICAUTH_USERNAME: ${ME_CONFIG_BASICAUTH_USERNAME}
ME_CONFIG_BASICAUTH_PASSWORD: ${ME_CONFIG_BASICAUTH_PASSWORD}
ports:
- "8081:8081"
networks:
- arandu-network
depends_on:
- mongo
networks:
arandu-network:
name: arandu-network