-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
43 lines (39 loc) · 840 Bytes
/
docker-compose.yml
File metadata and controls
43 lines (39 loc) · 840 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
33
34
35
36
37
38
39
40
41
42
43
version: '3.8'
services:
mongodb:
image: mongo:latest
container_name: authgo-mongodb
ports:
- "27018:27017"
environment:
MONGO_INITDB_DATABASE: localDB
volumes:
- mongo_data:/data/db
networks:
- authgo-network
command: mongod --quiet --logpath /dev/null
healthcheck:
test: ["CMD", "mongosh", "--eval", "db.adminCommand('ping')"]
interval: 10s
timeout: 5s
retries: 5
auth-service:
build: .
container_name: authgo-service
ports:
- "8080:8080"
env_file:
- .env
environment:
- MONGODB_URI=mongodb://mongodb:27017/localDB
depends_on:
mongodb:
condition: service_healthy
networks:
- authgo-network
restart: on-failure
volumes:
mongo_data:
networks:
authgo-network:
driver: bridge