forked from brave-intl/bat-go
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev-refresh.yml
More file actions
54 lines (53 loc) · 1.83 KB
/
Copy pathdocker-compose.dev-refresh.yml
File metadata and controls
54 lines (53 loc) · 1.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
version: "3.4"
services:
# dev-refresh service will start up a grant server bound to host port 3334
# which allows one to do `docker restart grant-dev-refresh` when the user
# wants to "restart" the service running new code. This is especially helpful
# when you hook it up to `fswatch` type utilities, causing a re-run of `go run`
# every time a file changes.
dev-refresh:
container_name: grant-dev-refresh
image: golang:1.16
ports:
- "3335:3333"
- "6061:6061"
command: "go run main.go serve grant"
volumes:
- .:/src
- ./test/secrets:/etc/kafka/secrets
working_dir: /src
depends_on:
- kafka
- postgres
- challenge-bypass
networks:
- grant
environment:
- PPROF_ENABLED=true
- ENABLE_LINKING_DRAINING=true
- ENV=local
- DEBUG=1
- BAT_SETTLEMENT_ADDRESS
- BRAVE_TRANSFER_PROMOTION_ID
- CHALLENGE_BYPASS_SERVER=http://challenge-bypass:2416
- CHALLENGE_BYPASS_TOKEN
- "DATABASE_MIGRATIONS_URL=file:///src/migrations"
- "DATABASE_URL=postgres://grants:password@postgres/grants?sslmode=disable"
- ENCRYPTION_KEY=MTIzNDU2Nzg5MDEyMzQ1Njc4OTAxMjM0
- FEATURE_MERCHANT=true
- DONOR_WALLET_CARD_ID
- DONOR_WALLET_PRIVATE_KEY
- DONOR_WALLET_PUBLIC_KEY
- GRANT_SIGNATOR_PUBLIC_KEY
- GRANT_WALLET_CARD_ID
- GRANT_WALLET_PRIVATE_KEY
- GRANT_WALLET_PUBLIC_KEY
- KAFKA_BROKERS=kafka:19092
- KAFKA_SSL_CA_LOCATION=/etc/kafka/secrets/snakeoil-ca-1.crt
- KAFKA_SSL_CERTIFICATE_LOCATION=/etc/kafka/secrets/consumer-ca1-signed.pem
- KAFKA_SSL_KEY_LOCATION=/etc/kafka/secrets/consumer.client.key
- KAFKA_REQUIRED_ACKS=1
- TOKEN_LIST
- UPHOLD_ACCESS_TOKEN
- "RATIOS_SERVICE=https://ratios.rewards.bravesoftware.com"
- RATIOS_TOKEN