-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
46 lines (42 loc) · 1.14 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
---
volumes:
data:
services:
postgres:
image: postgres:15.6-alpine
restart: always
volumes:
- data:/var/lib/postgresql/data
- ./postgresql.conf:/etc/postgresql/config/postgresql.conf:ro
- ./tls/certs/root.crt:/etc/postgres/security/root.crt:ro
- ./tls/certs/server.crt:/etc/postgres/security/server.crt:ro
- ./tls/certs/server.key:/etc/postgres/security/server.key:ro
command: -c config_file=/etc/postgresql/config/postgresql.conf
env_file: .env.local
otel-collector:
image: otel/opentelemetry-collector-contrib
volumes:
- ./otel-collector-config.yml:/etc/otelcol-contrib/config.yaml:ro
server:
build:
context: ./server
dockerfile: Dockerfile
restart: always
volumes:
- ./tls/certs/client.crt:/client.crt:ro
- ./tls/certs/client.key:/client.key:ro
- ./tls/certs/root.crt:/root.crt:ro
env_file: .env.local
ports:
- 8080:8080
depends_on:
- postgres
- otel-collector
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
restart: always
env_file: .env.local
depends_on:
- server