-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
104 lines (104 loc) · 2.91 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
version: '3'
services:
postgres:
build: database
restart: on-failure
environment:
- POSTGRES_USER=${DB_USER}
- POSTGRES_PASSWORD=${DB_PASS}
volumes:
- ./database/init.sql:/docker-entrypoint-initdb.d/init.sql:ro
rabbitmq:
image: rabbitmq:3-management
hostname: "rabbitmq"
restart: on-failure
ports:
- 5672:5672
- 15672:15672
environment:
- RABBITMQ_DEFAULT_USER=${RABBIT_MQ_USER}
- RABBITMQ_DEFAULT_PASS=${RABBIT_MQ_PASS}
logging-db:
build: logging-db
restart: on-failure
environment:
- POSTGRES_USER=${DB_USER}
- POSTGRES_PASSWORD=${DB_PASS}
depends_on:
- rabbitmq
volumes:
- ./logging-db/init.sql:/docker-entrypoint-initdb.d/init.sql:ro
logging-server:
build: logging-server
restart: on-failure
depends_on:
- logging-db
- rabbitmq
volumes:
- ./logging-server/out:/out:rw
adminer-logging:
image: michalhosna/adminer:4.7.0
depends_on:
- logging-db
restart: on-failure
ports:
- 90:8080
environment:
- ADMINER_DRIVER=pgsql
- ADMINER_DB=postgres
- ADMINER_SERVER=logging-db
- ADMINER_USERNAME=${DB_USER}
- ADMINER_PASSWORD=${DB_PASS}
- ADMINER_AUTOLOGIN=1
adminer:
image: michalhosna/adminer:4.7.0
depends_on:
- postgres
restart: on-failure
ports:
- ${ADMINER_PORT}:8080
environment:
- ADMINER_DRIVER=pgsql
- ADMINER_DB=postgres
- ADMINER_SERVER=postgres
- ADMINER_USERNAME=${DB_USER}
- ADMINER_PASSWORD=${DB_PASS}
- ADMINER_AUTOLOGIN=1
quote-cache:
build: quote-cache
restart: always
ports:
- 4444:4444
- 6000:6000
transaction-server:
build: transaction-server
depends_on:
- postgres
- quote-cache
- rabbitmq
restart: unless-stopped
ports:
- ${TRANSACTION_PORT}:5000
volumes:
- ./transaction-server/out:/out:rw
environment:
- PYTHONUNBUFFERED=TRUE
workload-generator:
build: workload-generator
restart: on-failure
depends_on:
- transaction-server
volumes:
- ./workloads:/workloads:ro
stdin_open: true
tty: true
webserver:
image: nginx:1.14.2
restart: on-failure
ports:
- ${WEB_SERVER_PORT}:80
volumes:
- ./webserver/nginx.conf:/etc/nginx/nginx.conf:ro
- ./webserver/html:/usr/share/nginx/html:ro
stdin_open: true
tty: true