-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
187 lines (175 loc) · 4.83 KB
/
docker-compose.yml
File metadata and controls
187 lines (175 loc) · 4.83 KB
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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
services:
gateway:
image: codecov/self-hosted-gateway:rolling
volumes:
- ./tools/devenv/config:/config:ro,cached
ports:
- "${CODECOV_PORT-8080}:8080"
environment:
- CODECOV_API_ADMIN_ENABLED=true
- CODECOV_API_ADMIN_DEBUG_ENABLED=true
- CODECOV_GATEWAY_MINIO_ENABLED=true
- CODECOV_MINIO_PORT=9002
networks:
- codecov
depends_on:
- api
- frontend
# -------
# Pre-built Gazebo image
# -------
frontend:
image: codecov/self-hosted-frontend:rolling
environment:
- CODECOV_BASE_HOST=localhost:8080
- CODECOV_API_HOST=localhost:8080
- CODECOV_SCHEME=http
volumes:
- ./tools/devenv/config:/config:ro,cached
networks:
- codecov
# # -------
# # Gazebo local development
# #
# # This service will use your local Gazebo repo and run a yarn dev server
# # in a container within the codecov docker network.
# # Use if you're doing front end development AND want to use your local
# # api/shared/worker. If you're doing purely front end development, it's
# # often easier to just point your gazebo dev server at the staging API.
# # If you do want to use this, uncomment this service and comment out the
# # above frontend service.
# #
# # If you do this and want to prevent docker-compose.yml from showing up in
# # your `git status`, you can do so with:
# #
# # git update-index --assume-unchanged docker-compose.yml
# # -------
# frontend:
# image: node:22-alpine
# environment:
# # Environment variables set here will override your gazebo .env files
# - PROXY_TO=http://localhost:8080
# - REACT_APP_API_URL=http://localhost:8080
# - REACT_APP_BASE_URL=http://localhost:8080
# # - REACT_APP_ENV=enterprise
# # - REACT_APP_IS_SELF_HOSTED=true
# volumes:
# # Assumes gazebo is a sibling directory to umbrella.
# # Change if that's not the case.
# - ../gazebo:/gazebo
# command: >
# sh -c "cd /gazebo &&
# yarn &&
# yarn dev --port 8080"
# networks:
# - codecov
api:
image: ${AR_REPO_PREFIX-codecov}/api
entrypoint: sh -c "exec /devenv-scripts/start.sh codecov-api"
environment:
- RUN_ENV=DEV
- CELERY_BROKER_URL=redis://redis:6379/0
- CELERY_RESULT_BACKEND=redis://redis:6379/0
volumes:
- ./tools/devenv/config:/config:ro,cached
- ./tools/devenv/scripts:/devenv-scripts:ro,cached
- ./:/app:cached
networks:
- codecov
depends_on:
- minio
- postgres
- redis
- timescale
worker:
image: ${AR_REPO_PREFIX-codecov}/worker
entrypoint: sh -c "exec /devenv-scripts/start.sh worker"
environment:
- RUN_ENV=DEV
- CELERY_BROKER_URL=redis://redis:6379/0
- CELERY_RESULT_BACKEND=redis://redis:6379/0
- SETUP__TA_TIMESERIES__ENABLED=true
volumes:
- ./tools/devenv/config:/config:ro,cached
- ./tools/devenv/scripts:/devenv-scripts:ro,cached
- ./:/app:cached
networks:
- codecov
depends_on:
- minio
- postgres
- redis
- timescale
# Dummy service to run shared tests
shared:
# This is the name of the image build in libs/shared
image: ${AR_REPO_PREFIX-codecov}/dev-shared
tty: true
environment:
- SETUP__TIMESERIES__ENABLED=true
- SETUP__TA_TIMESERIES__ENABLED=true
volumes:
- ./libs/shared/shared:/app/libs/shared/shared
- ./libs/shared/tests:/app/libs/shared/tests
- ./libs/shared/.coveragerc:/app/libs/shared/.coveragerc
networks:
- codecov
depends_on:
- minio
- postgres
- redis
- timescale
redis:
image: redis:6.2-alpine
ports:
- "6380:6379"
volumes:
- redis-volume:/data
networks:
- codecov
postgres:
image: postgres:14-alpine
environment:
- POSTGRES_HOST_AUTH_METHOD=trust
volumes:
- postgres-volume:/var/lib/postgresql/data
ports:
- "5434:5432"
networks:
- codecov
timescale:
image: timescale/timescaledb:latest-pg14
environment:
- POSTGRES_HOST_AUTH_METHOD=trust
volumes:
- timescale-volume:/var/lib/postgresql/data
- ./docker/init_db.sql:/docker-entrypoint-initdb.d/init_db.sql
ports:
- "5433:5432"
networks:
- codecov
minio:
image: minio/minio:latest
command: server --address ":9002" --console-address ":9001" /export
ports:
- "9002:9002"
- "9001:9001"
environment:
- MINIO_ACCESS_KEY=codecov-default-key
- MINIO_SECRET_KEY=codecov-default-secret
volumes:
- archive-volume:/export
networks:
- codecov
mailhog:
image: mailhog/mailhog:latest
networks:
- codecov
volumes:
postgres-volume:
timescale-volume:
redis-volume:
archive-volume:
networks:
codecov:
driver: bridge