-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
85 lines (79 loc) · 2.1 KB
/
docker-compose.yaml
File metadata and controls
85 lines (79 loc) · 2.1 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
services:
nginx-react:
container_name: react-app
build:
context: packages/client
dockerfile: Dockerfile
args:
- SYMBOLS_PATH=/symbols
target: nginx-local
ports:
- "5173:80"
# volumes:
# - symbols_data:/symbols
environment:
NODE_ENV: production
appserver:
container_name: express_server
build:
context: packages/server
dockerfile: Dockerfile
ports:
- "8081:8081"
env_file:
- ./.env
- ./packages/server/.env.docker
#environment:
# OTEL_EXPORTER_OTLP_ENDPOINT: otel-collector:4318
# OTEL_SERVICE_NAME: express-backend
otel-collector:
# image: otel/opentelemetry-collector-contrib:0.114.0
image: honeycombio/honeycomb-opentelemetry-collector:latest
build:
context: packages/client
dockerfile: Dockerfile
args:
- SYMBOLS_PATH=/symbols
target: collector-local
volumes:
- ./packages/otel-collector/otel-collector-config.yaml:/config.yaml
# - symbols_data:/symbols
environment:
HONEYCOMB_API_KEY: $HONEYCOMB_API_KEY
env_file:
- .env
ports:
- "4317:4317" # OTLP gRPC receiver
- "4318:4318" # OTLP http receiver
postgres:
image: postgres:15.4
container_name: postgres
restart: unless-stopped
environment:
POSTGRES_USER: library_user
POSTGRES_PASSWORD: library_password
POSTGRES_DB: library
ports:
- '5432:5432'
volumes:
- postgres_data:/var/lib/postgresql/data
flyway:
image: flyway/flyway:latest
depends_on:
- postgres
command: -configFiles=/flyway/conf/flyway.conf -locations=filesystem:/flyway/sql migrate
volumes:
- ./flyway.conf:/flyway/conf/flyway.conf:ro
- ./db/migrations:/flyway/sql
## todo - get this working
# flagd:
# image: ghcr.io/open-feature/flagd:latest
# container_name: flagd
# ports:
# - "8013:8013" # Expose the flagd server
# volumes:
# - ./flagd/flagd.json:/etc/flagd/flagd.json:ro
# command: ["start", "--uri=file:///etc/flagd/flagd.json"]
volumes:
postgres_data:
symbols_data: