This repository has been archived by the owner on Dec 12, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yaml
72 lines (66 loc) · 1.64 KB
/
docker-compose.yaml
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
version: '3'
networks:
app-net:
driver: bridge
volumes:
cassandra-data:
services:
# TODO Inject cassandra creds inside web container
web:
build:
context: .
dockerfile: dev.Dockerfile
args:
PROJECT_DIR: /go/src/github.com/metrosystems-cpe/ustress
working_dir: /go/src/github.com/metrosystems-cpe/ustress
command: sh -c "go run cmd/ustress/main.go web --start"
environment:
GOPATH: /go
volumes:
- .:/go/src/github.com/metrosystems-cpe/ustress
depends_on:
- cassandra
environment:
CASSANDRA_CREDS: "some creds"
healthcheck:
test: ["CMD", "curl", "http://localhost/.well-known/ready"]
interval: 2s
retries: 2000
networks:
- app-net
links:
- cassandra
ports:
- '8080:8080'
frontend:
build:
context: .
dockerfile: dev.frontend.Dockerfile
args:
PROJECT_DIR: /go/src/github.com/metrosystems-cpe/ustress
working_dir: /go/src/github.com/metrosystems-cpe/ustress/web/ui
command: sh -c "npm start"
volumes:
- ./web/ui/src:/go/src/github.com/metrosystems-cpe/ustress/web/ui/src
networks:
- app-net
links:
- web
depends_on:
- web
ports:
- '3000:3000'
cassandra:
image: 'bitnami/cassandra:latest'
volumes:
- cassandra-data
networks:
- app-net
environment:
- CASSANDRA_PASSWORD_SEEDER=yes
ports:
- "7199:7199" # JMX
- "7000:7000" # cluster communication
- "7001:7001" # cluster communication (SSL)
- "9042:9042" # native protocol clients
- "9160:9160" # thrift clients