-
Notifications
You must be signed in to change notification settings - Fork 168
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
111 lines (109 loc) · 2.98 KB
/
docker-compose.yml
File metadata and controls
111 lines (109 loc) · 2.98 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
services:
post-rest:
image: postgrest/postgrest:v9.0.0
depends_on:
db-init:
condition: service_completed_successfully
environment:
PGRST_DB_URI: $DATABASE_CONNECTION
PGRST_DB_SCHEMAS: public,cargo
PGRST_DB_ANON_ROLE: postgres
PGRST_JWT_SECRET: super-secret-jwt-token-with-at-least-32-characters-long
db-init:
restart: on-failure
build:
dockerfile: './docker/Dockerfile'
context: '../'
entrypoint: 'psql $DATABASE_CONNECTION -v "ON_ERROR_STOP=1" -f ./db/config.sql -f ./db/tables.sql -f ./db/cargo.testing.sql -f ./db/functions.sql'
depends_on:
- db
environment:
- DATABASE_CONNECTION
- DATABASE_URL
- DATABASE_TOKEN
api:
restart: on-failure
build:
dockerfile: ./docker/Dockerfile
context: ../
environment:
- BRANCH
- CLUSTER_API_URL
- CLUSTER_BASIC_AUTH_TOKEN
- CLUSTER_SERVICE
- COMMITHASH
- DATABASE_CONNECTION
- DATABASE_TOKEN
- DATABASE_URL
- DEBUG
- ENV
- LOGTAIL_TOKEN
- MAGIC_SECRET_KEY
- MAILCHIMP_API_KEY
- MAINTENANCE_MODE
- METAPLEX_AUTH_TOKEN
- PRIVATE_KEY
- SALT
- SENTRY_DSN
- VERSION
depends_on:
- post-rest
- ipfs-cluster
db:
build:
context: ./postgres
environment:
POSTGRES_DB: postgres
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_PORT: 5432
ipfs:
image: ipfs/go-ipfs:v0.10.0 # update this when go-ipfs M1 macs https://github.com/ipfs/go-ipfs/issues/8645
ipfs-cluster:
image: ipfs/ipfs-cluster:v1.0.0-rc4 # we need to use this image tag, as nft.storage expects CIDs to come back in a certain format
depends_on:
- ipfs
environment:
CLUSTER_PEERNAME: cluster
CLUSTER_SECRET: ${CLUSTER_SECRET} # From shell variable if set
CLUSTER_IPFSHTTP_NODEMULTIADDRESS: /dns4/ipfs/tcp/5001
CLUSTER_CRDT_TRUSTEDPEERS: '*' # Trust all peers in Cluster
CLUSTER_RESTAPI_HTTPLISTENMULTIADDRESS: /ip4/0.0.0.0/tcp/9094 # Expose API
CLUSTER_RESTAPI_BASICAUTHCREDENTIALS: test:test
CLUSTER_RESTAPI_CORSALLOWEDMETHODS: GET,POST,OPTIONS
CLUSTER_RESTAPI_CORSALLOWEDHEADERS: authorization
CLUSTER_MONITORPINGINTERVAL: 2s # Speed up peer discovery
playwright:
profiles:
- test
depends_on:
api:
condition: service_healthy
build:
dockerfile: ./docker/test.Dockerfile
context: ../
environment:
- BRANCH
- CLUSTER_API_URL
- CLUSTER_BASIC_AUTH_TOKEN
- CLUSTER_SERVICE
- COMMITHASH
- DATABASE_CONNECTION
- DATABASE_TOKEN
- DATABASE_URL
- DEBUG
- ENV
- LOGTAIL_TOKEN
- MAGIC_SECRET_KEY
- MAILCHIMP_API_KEY
- MAINTENANCE_MODE
- METAPLEX_AUTH_TOKEN
- PRIVATE_KEY
- S3_ACCESS_KEY_ID
- S3_BUCKET_NAME
- S3_ENDPOINT
- S3_REGION
- S3_SECRET_ACCESS_KEY
- SALT
- SENTRY_DSN
- VERSION