-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
52 lines (47 loc) · 1023 Bytes
/
docker-compose.yml
File metadata and controls
52 lines (47 loc) · 1023 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
44
45
46
47
48
49
50
51
52
version: "3.8"
services:
backend:
build:
context: ./backend
dockerfile: Dockerfile
container_name: robleaustral_back
ports:
- "4008:4008"
networks:
- redroble
depends_on:
- mongo
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
container_name: robleaustral_front
ports:
- "3008:3008"
networks:
- redroble
mongo:
build: ./database
container_name: robleaustral_db
ports:
- "27017:27017"
networks:
- redroble
environment:
MONGO_INITDB_ROOT_USERNAME: robleAustral
MONGO_INITDB_ROOT_PASSWORD: robleaustral123
volumes:
- ./database/dump:/dump
- ./database/init-mongo.sh:/docker-entrypoint-initdb.d/init-mongo.sh
restart: unless-stopped
healthcheck:
test: ["CMD", "mongo", "--eval", "db.runCommand('ping').ok"]
interval: 10s
timeout: 5s
retries: 5
volumes:
data:
external: false
networks:
redroble:
name: redroble