-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
61 lines (51 loc) · 1.04 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
54
55
56
57
58
59
60
61
version: '3'
services:
web:
build:
context: api
ports:
- "8000:8000"
volumes:
- "./api:/app"
depends_on:
- database
webshop:
build:
context: tback
ports:
- "8080:8080"
volumes:
- "./tback:/app"
depends_on:
- users_database
- web
database:
image: "mongo"
environment:
- MONGO_INTDB_DATABASE="database"
- MONGO_INTDB_ROOT_USERNAME="admin"
- MONGO_INTDB_ROOT_PASSWORD="admin"
volumes:
- ./init-mongo.js:/docker-entrypoint-initdb.d/init-mongo.js:ro
- ./mongo-volume:/data/db
ports:
- '27017:27017'
users_database:
image: postgres
environment:
POSTGRES_DB: USERS
POSTGRES_PASSWORD: password
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
ports:
- "5432:5432"
frontend:
build:
context: react-frontend
ports:
- "3000:3000"
volumes:
- "./react-frontend:/app"