-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
32 lines (31 loc) · 810 Bytes
/
docker-compose.yml
File metadata and controls
32 lines (31 loc) · 810 Bytes
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
services:
app:
build: .
container_name: api-smartranking
environment:
- PORT=${PORT}
- DATABASE_URL=${DATABASE_URL}
ports:
- ${PORT}:${PORT}
depends_on:
- mongo
volumes:
- ./src:/app/src
mongo:
image: mongo
restart: always
environment:
MONGO_INITDB_ROOT_USERNAME: ${DATABASE_USERNAME}
MONGO_INITDB_ROOT_PASSWORD: ${DATABASE_PASSWORD}
ports:
- ${DATABASE_PORT}:${DATABASE_PORT}
mongo-express:
image: mongo-express
restart: always
ports:
- ${MONGO_EXPRESS_PORT}:${MONGO_EXPRESS_PORT}
environment:
ME_CONFIG_MONGODB_ADMINUSERNAME: ${DATABASE_USERNAME}
ME_CONFIG_MONGODB_ADMINPASSWORD: ${DATABASE_PASSWORD}
ME_CONFIG_MONGODB_URL: ${DATABASE_URL}
ME_CONFIG_BASICAUTH: false