-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathdocker-compose.testing.yml
More file actions
178 lines (158 loc) · 4.91 KB
/
Copy pathdocker-compose.testing.yml
File metadata and controls
178 lines (158 loc) · 4.91 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
# this file is used in CI to run test cases
services:
base:
image: kleinkram-base
build:
context: .
dockerfile: docker/base.Dockerfile
action_test_file_hash:
image: rslethz/kleinkram_actions:file-hash-latest
container_name: kleinkram-action-test-file-hash-test
build:
context: ./
dockerfile: backend/tests/actions/file-hash/Dockerfile
entrypoint: sh
api-server:
image: rslethz/kleinkram:api-server-latest
container_name: kleinkram-api-server-test
build:
context: .
dockerfile: docker/backend.Dockerfile
target: production
additional_contexts:
kleinkram-base: service:base
action-test-file-hash: service:action_test_file_hash
ports:
- 127.0.0.1:${SERVER_PORT}:${SERVER_PORT}
volumes:
- ./backend/.endpoints:/app/backend/.endpoints
environment:
SEED: 'false'
DEVBUILD: 'false'
REDIS_HOST: 'redis'
env_file:
- .env
networks:
- webnet
- privatenet
depends_on:
- database
- loki
loki:
image: grafana/loki
container_name: kleinkram-loki-test
ports:
- '3100:3100'
command:
- --config.file=/mnt/config/loki-config.yml
- -log.level=error
volumes:
- ./observability/loki/loki-config.yml:/mnt/config/loki-config.yml:ro
networks:
- privatenet
- webnet
database:
image: postgres:17
container_name: kleinkram-postgres-test
ports:
- '5432:5432'
networks:
- privatenet
environment:
POSTGRES_DB: ${DB_DATABASE}
POSTGRES_USER: ${DB_USER}
POSTGRES_PASSWORD: ${DB_PASSWORD}
command: postgres -c hba_file=/etc/postgresql/pg_hba.conf
volumes:
- db_data_test:/var/lib/postgresql/data
- ./docker/testing-pg_hba.conf:/etc/postgresql/pg_hba.conf
seaweedfs:
image: chrislusf/seaweedfs:latest
container_name: kleinkram-seaweedfs-test
command: server -dir=/data -s3 -s3.port=9000
volumes:
- seaweedfs_data_test:/data
- ./docker/seaweedfs-entrypoint.sh:/docker-entrypoint.sh:ro
environment:
S3_DATA_BUCKET_NAME: ${S3_DATA_BUCKET_NAME}
S3_DB_BUCKET_NAME: ${S3_DB_BUCKET_NAME}
S3_ARTIFACTS_BUCKET_NAME: ${S3_ARTIFACTS_BUCKET_NAME}
S3_ACCESS_KEY: ${S3_ACCESS_KEY}
S3_SECRET_KEY: ${S3_SECRET_KEY}
entrypoint: ['/docker-entrypoint.sh']
ports:
- '127.0.0.1:9000:9000'
- '127.0.0.1:9333:9333'
networks:
- webnet
- privatenet
frontend:
image: rslethz/kleinkram:frontend-dev
container_name: kleinkram-frontend-test
build:
context: .
dockerfile: docker/frontend.Dockerfile
args:
- BACKEND_URL=${BACKEND_URL}
- GIT_BRANCH=${GIT_BRANCH}
- GIT_COMMIT=${GIT_COMMIT}
additional_contexts:
kleinkram-base: service:base
ports:
- '8003:8003'
env_file:
- .env
networks:
- webnet
redis:
image: redis:latest
container_name: kleinkram-redis-test
ports:
- '6379:6379'
networks:
- privatenet
queue-consumer:
image: rslethz/kleinkram:queue-consumer-latest
container_name: kleinkram-queue-consumer-test
hostname: 'DO_NOT_CHANGE'
build:
context: .
dockerfile: docker/queue-consumer.Dockerfile
target: production
additional_contexts:
kleinkram-base: service:base
artifact-uploader: service:artifact-uploader
volumes:
# mount docker socket to access docker from within the container
- /var/run/docker.sock:/var/run/docker.sock
- ./google-service-account.json:/app/queueConsumer/google-service-account.json:ro
environment:
REDIS_HOST: 'redis'
env_file:
- .env
networks:
- privatenet
depends_on:
- database
fake-oauth:
build: dev-oauth
ports:
- '8004:5000'
networks:
- privatenet
- webnet
artifact-uploader:
image: rslethz/kleinkram:artifact-uploader-latest
build:
context: queueConsumer/src/artifactUpload
dockerfile: Dockerfile
volumes:
db_data_test:
seaweedfs_data_test:
logging-prometheus-storage:
logging-tempo-data:
vitepress_dist:
node_modules:
networks:
webnet:
privatenet: