Skip to content

Commit 52d4f39

Browse files
Update Compose stack examples (#810)
1 parent d4f5b14 commit 52d4f39

File tree

81 files changed

+178
-100
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

81 files changed

+178
-100
lines changed

pdm.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

requirements.dev.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ setuptools==68.1.2
100100
six==1.16.0
101101
sniffio==1.3.0
102102
snowballstemmer==2.2.0
103-
sphinx==7.2.4
103+
sphinx==7.2.5
104104
sphinx-click==5.0.1
105105
sphinx-markdown-builder==0.6.5
106106
sphinxcontrib-applehelp==1.0.7

src/demo_auction/configs/dipdup.swarm.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
database:
22
kind: postgres
3-
host: demo_auction_db
3+
host: ${POSTGRES_HOST:-demo_auction_db}
44
port: 5432
55
user: ${POSTGRES_USER:-dipdup}
66
password: ${POSTGRES_PASSWORD}
77
database: ${POSTGRES_DB:-dipdup}
88

99
hasura:
10-
url: http://demo_auction_hasura:8080
10+
url: http://${HASURA_HOST:-demo_auction_hasura}:8080
1111
admin_secret: ${HASURA_SECRET}
1212
allow_aggregations: false
1313
camel_case: true

src/demo_auction/deploy/compose.sqlite.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
version: "3.8"
12
name: demo_auction
23

34
services:

src/demo_auction/deploy/compose.swarm.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
version: "3.8"
12
name: demo_auction
23

34
services:
@@ -9,7 +10,7 @@ services:
910
command: ["-c", "dipdup.yaml", "-c", "configs/dipdup.swarm.yaml", "run"]
1011
env_file: .env
1112
networks:
12-
- dipdup-private
13+
- internal
1314
- prometheus-private
1415
deploy:
1516
mode: replicated
@@ -42,7 +43,7 @@ services:
4243
timeout: 5s
4344
retries: 5
4445
networks:
45-
- dipdup-private
46+
- internal
4647
deploy:
4748
mode: replicated
4849
replicas: 1
@@ -63,7 +64,7 @@ services:
6364
- HASURA_GRAPHQL_UNAUTHORIZED_ROLE=user
6465
- HASURA_GRAPHQL_STRINGIFY_NUMERIC_TYPES=true
6566
networks:
66-
- dipdup-private
67+
- internal
6768
- traefik-public
6869
deploy:
6970
mode: replicated
@@ -84,7 +85,7 @@ volumes:
8485
db:
8586

8687
networks:
87-
dipdup-private:
88+
internal:
8889
traefik-public:
8990
external: true
9091
prometheus-private:

src/demo_auction/deploy/compose.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
version: "3.8"
12
name: demo_auction
23

34
services:

src/demo_auction/deploy/swarm.env.default

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
# This env file was generated automatically by DipDup. Do not edit it!
22
# Create a copy with .env extension, fill it with your values and run DipDup with `--env-file` option.
33
#
4+
HASURA_HOST=demo_auction_hasura
45
HASURA_SECRET=
56
POSTGRES_DB=dipdup
7+
POSTGRES_HOST=demo_auction_db
68
POSTGRES_PASSWORD=
79
POSTGRES_USER=dipdup
810
SENTRY_DSN=""

src/demo_big_maps/configs/dipdup.swarm.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
database:
22
kind: postgres
3-
host: demo_big_maps_db
3+
host: ${POSTGRES_HOST:-demo_big_maps_db}
44
port: 5432
55
user: ${POSTGRES_USER:-dipdup}
66
password: ${POSTGRES_PASSWORD}
77
database: ${POSTGRES_DB:-dipdup}
88

99
hasura:
10-
url: http://demo_big_maps_hasura:8080
10+
url: http://${HASURA_HOST:-demo_big_maps_hasura}:8080
1111
admin_secret: ${HASURA_SECRET}
1212
allow_aggregations: false
1313
camel_case: true

src/demo_big_maps/deploy/compose.sqlite.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
version: "3.8"
12
name: demo_big_maps
23

34
services:

src/demo_big_maps/deploy/compose.swarm.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
version: "3.8"
12
name: demo_big_maps
23

34
services:
@@ -9,7 +10,7 @@ services:
910
command: ["-c", "dipdup.yaml", "-c", "configs/dipdup.swarm.yaml", "run"]
1011
env_file: .env
1112
networks:
12-
- dipdup-private
13+
- internal
1314
- prometheus-private
1415
deploy:
1516
mode: replicated
@@ -42,7 +43,7 @@ services:
4243
timeout: 5s
4344
retries: 5
4445
networks:
45-
- dipdup-private
46+
- internal
4647
deploy:
4748
mode: replicated
4849
replicas: 1
@@ -63,7 +64,7 @@ services:
6364
- HASURA_GRAPHQL_UNAUTHORIZED_ROLE=user
6465
- HASURA_GRAPHQL_STRINGIFY_NUMERIC_TYPES=true
6566
networks:
66-
- dipdup-private
67+
- internal
6768
- traefik-public
6869
deploy:
6970
mode: replicated
@@ -84,7 +85,7 @@ volumes:
8485
db:
8586

8687
networks:
87-
dipdup-private:
88+
internal:
8889
traefik-public:
8990
external: true
9091
prometheus-private:

0 commit comments

Comments
 (0)