-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
70 lines (64 loc) · 1.76 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
62
63
64
65
66
67
68
69
70
version: '3'
services:
product-service:
build: product-service/
ports:
- "8080:8080"
links:
- hashlab-postgres
- discount-service
environment:
- HASHLAB_DISCOUNT_SERVICE_URI=discount-service:50051
- HASHLAB_POSTGRES_CONNECTION_URI=jdbc:postgresql://hashlab-postgres:5432/hashlab?user=hashlab&password=hashlab
- HASHLAB_PRODUCTION_SERVICE_PER_PAGE=20
discount-service:
build: discount-service/
links:
- user-service
ports:
- "50051:50051"
environment:
- HASHLAB_USER_SERVICE_URI=user-service:50052
- HASHLAB_DISCOUNT_SERVICE_PORT=:50051
user-service:
build: user-service/
links:
- hashlab-mongodb
ports:
- "50052:50052"
environment:
- HASHLAB_USER_SERVICE_PORT=:50052
- HASHLAB_MONGODB_HOST=hashlab-mongodb
- HASHLAB_MONGODB_USERNAME=hashlab
- HASHLAB_MONGODB_PASSWORD=hashlab
- HASHLAB_MONGODB_DATABASE=hashlab
- HASHLAB_MONGODB_AUTH_SOURCE=admin
hashlab-mongodb:
image: mongo:4.0.11
ports:
- "27017:27017"
volumes:
- ./scripts/mongo:/docker-entrypoint-initdb.d/
environment:
- MONGO_INITDB_ROOT_USERNAME=hashlab
- MONGO_INITDB_DATABASE=hashlab
- MONGO_INITDB_ROOT_PASSWORD=hashlab
hashlab-postgres:
image: postgres:9.6.14
ports:
- "5432:5432"
volumes:
- ./scripts/psql:/docker-entrypoint-initdb.d/
environment:
- POSTGRES_USER=hashlab
- POSTGRES_PASSWORD=hashlab
hashlab-postgres-phppgadmin:
image: dockage/phppgadmin:latest
links:
- hashlab-postgres
ports:
- "9000:80"
environment:
- PHP_PG_ADMIN_SERVER_DESC=PostgreSQL
- PHP_PG_ADMIN_SERVER_HOST=hashlab-postgres
- PHP_PG_ADMIN_SERVER_PORT=5432