-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
113 lines (104 loc) · 2.12 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
105
106
107
108
109
110
111
112
113
version: '3.1'
services:
db:
image: postgres:14.2
restart: always
ports:
- '5432:5432'
environment:
POSTGRES_PASSWORD: foobar88
redis:
build:
context: .dockerfiles
dockerfile: redis.Dockerfile
args:
- REDIS_USER=gitpoap-redis
- REDIS_PASSWORD=ICanHazASecurePassword
ports:
- '6379:6379'
fake-poap-auth:
build:
context: .
dockerfile: .dockerfiles/fake-poap-auth/auth.Dockerfile
ports:
- '4005:4005'
environment:
- POAP_CLIENT_ID=a good client id
- POAP_CLIENT_SECRET=super secret!
fake-poap-api:
build:
context: .
dockerfile: .dockerfiles/fake-poap-api/api.Dockerfile
ports:
- '4004:4004'
depends_on:
- fake-poap-auth
server:
build:
context: .
dockerfile: .dockerfiles/server.Dockerfile
ports:
- '3001:3001'
- '8080:8080'
volumes:
- $HOME/.aws/credentials:/root/.aws/credentials:ro
environment:
- TEST_ENV=${TEST_ENV}
depends_on:
- db
- redis
- fake-poap-api
- fake-poap-auth
profiles:
- server
- public-api
- metrics
- integration-tests
public-api-server:
build:
context: .
dockerfile: .dockerfiles/public-api-server.Dockerfile
ports:
- '3122:3122'
- '8081:8080'
depends_on:
- db
- redis
- fake-poap-api
- fake-poap-auth
profiles:
- public-api
- metrics
- integration-tests
prometheus:
build:
context: .
dockerfile: .dockerfiles/prometheus.Dockerfile
ports:
- '9090:9090'
depends_on:
- server
- public-api-server
profiles:
- metrics
grafana:
build:
context: .dockerfiles
dockerfile: grafana.Dockerfile
ports:
- '9091:9091'
depends_on:
- prometheus
profiles:
- metrics
integration-tests:
build:
context: .
dockerfile: .dockerfiles/integration-tests.Dockerfile
depends_on:
- db
- redis
- server
- public-api-server
profiles:
- integration-tests