-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
121 lines (108 loc) · 3.11 KB
/
docker-compose.yaml
File metadata and controls
121 lines (108 loc) · 3.11 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
volumes:
yarn:
services:
yarn:
image: node:22
working_dir: /workspace
volumes:
- yarn:/.yarn/berry
- ./:/workspace
entrypoint: yarn
db:
image: bitnami/postgresql
environment:
- POSTGRESQL_PASSWORD=password
- POSTGRESQL_DATABASE=db
- POSTGRESQL_USER=postgres
ports:
- 5432:5432
zookeeper:
image: confluentinc/cp-zookeeper:7.3.2
environment:
ZOOKEEPER_CLIENT_PORT: 2181
ZOOKEEPER_TICK_TIME: 2000
ports:
- 22181:2181
kafka:
image: confluentinc/cp-kafka:7.3.2
depends_on:
- zookeeper
ports:
- 29092:29092
- 9092:9092
environment:
KAFKA_BROKER_ID: 1
KAFKA_ZOOKEEPER_CONNECT: 'zookeeper:2181'
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT,PLAINTEXT_INTERNAL:PLAINTEXT
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka:9092,PLAINTEXT_INTERNAL://broker:29092
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
KAFKA_TRANSACTION_STATE_LOG_MIN_ISR: 1
KAFKA_TRANSACTION_STATE_LOG_REPLICATION_FACTOR: 1
files:
image: node:22
working_dir: /workspace
entrypoint: bash -c "yarn workspace @files/service-entrypoint prepack && yarn workspace @files/service-entrypoint start"
volumes:
- yarn:/.yarn/berry
- ./:/workspace
- .config/dev/fake-google-credentials.json:/workspace/fixtures/fake-google-credentials.json
environment:
- KAFKA_BROKERS=kafka:9092
# - FILES_STORAGE_PROVIDER=gcs
# - GCS_API_ENDPOINT=http://gcs:4443
# - GCS_KEY_FILENAME=fixtures/fake-google-credentials.json
- FILES_STORAGE_PROVIDER=s3
- S3_ENDPOINT=http://minio:9000
- S3_LOCALHOST_ENDPOINT=http://localhost:9000
- S3_REGION=eu-central-1
- AWS_ACCESS_KEY_ID=accesskey
- AWS_SECRET_ACCESS_KEY=secretkey
- DB_HOST=db
- DB_DATABASE=files_core
- DB_PASSWORD=password
- DB_USERNAME=postgres
- FILES_BUCKETS_PUBLIC_BUCKET=public
- FILES_BUCKETS_PUBLIC_TYPE=public
- FILES_BUCKETS_PUBLIC_CONDITIONS_TYPE=image/*
- FILES_BUCKETS_PUBLIC_CONDITIONS_SIZE_MIN=1
- FILES_BUCKETS_PUBLIC_CONDITIONS_SIZE_MAX=5242880
files-gateway:
image: node:22
working_dir: /workspace
volumes:
- yarn:/.yarn/berry
- ./:/workspace
entrypoint: yarn workspace @files/gateway-entrypoint dev
environment:
- FILES_SERVICE_URL=http://files:50051
ports:
- 3000:3000
gcs:
image: fsouza/fake-gcs-server
command: -scheme http -external-url http://localhost:4443
volumes:
- .data/gcs:/storage
ports:
- 4443:4443
minio:
image: minio/minio
command: server /data --console-address ":9001"
volumes:
- .data/s3:/data
ports:
- 9000:9000
- 9001:9001
environment:
- MINIO_ROOT_USER=accesskey
- MINIO_ROOT_PASSWORD=secretkey
gateway:
image: node:22
working_dir: /workspace
volumes:
- yarn:/.yarn/berry
- ./:/workspace
entrypoint: yarn workspace @gateway/public-gateway-entrypoint dev
environment:
- FILES_SERVICE_URL=files:50051
ports:
- '3000:3000'