-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
32 lines (32 loc) · 799 Bytes
/
compose.yaml
File metadata and controls
32 lines (32 loc) · 799 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:
context: .
dockerfile: Dockerfile
ports:
- '8080:8080'
depends_on:
- mongodb
- redis
environment:
- MONGODB_URI=${MONGODB_URI}
- REDIS_HOST=${REDIS_HOST}
- REDIS_PORT=${REDIS_PORT}
- APPLICATION_BASE_URL=${APPLICATION_BASE_URL}
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:8080/actuator/health" ]
interval: 30s
timeout: 10s
retries: 5
mongodb:
image: 'mongo:latest'
environment:
- MONGO_INITDB_ROOT_USERNAME=${MONGO_INITDB_ROOT_USERNAME}
- MONGO_INITDB_ROOT_PASSWORD=${MONGO_INITDB_ROOT_PASSWORD}
- MONGO_INITDB_DATABASE=${MONGO_INITDB_DATABASE}
ports:
- '27017'
redis:
image: 'redis:latest'
ports:
- '6379'