Skip to content

Commit c6ca5de

Browse files
committed
0.0.440 docker-compose
1 parent d321245 commit c6ca5de

File tree

8 files changed

+47
-60
lines changed

8 files changed

+47
-60
lines changed

docker-prod/deep/docker-compose.yml renamed to docker-compose.yml

Lines changed: 39 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,19 @@ services:
1212
volumes:
1313
- db-data:/var/lib/postgresql/data
1414
environment:
15-
- 'POSTGRES_USER=postgres'
16-
- 'POSTGRES_PASSWORD=postgrespassword'
17-
- 'PGGSSENCMODE=disable'
18-
- 'PGSSLMODE=disable'
19-
- 'PGREQUIRESSL=0'
15+
- 'POSTGRES_USER=${DEEP_POSTGRES_USER}'
16+
- 'POSTGRES_PASSWORD=${DEEP_POSTGRES_PASSWORD}'
17+
- 'PGGSSENCMODE=${DEEP_POSTGRES_GSS_ENCODING_MODE}'
18+
- 'PGSSLMODE=${DEEP_POSTGRES_SSL_MODE}'
19+
- 'PGREQUIRESSL=${DEEP_POSTGRES_REQUIRE_SSL}'
2020
logging:
2121
driver: "json-file"
2222
options:
2323
max-size: 10m
2424
max-file: "3"
2525
hasura:
2626
container_name: deep-hasura
27-
image: hasura/graphql-engine:v2.3.1
27+
image: hasura/graphql-engine:v2.43.0
2828
networks:
2929
- network
3030
ports:
@@ -36,40 +36,38 @@ services:
3636
- "postgres"
3737
restart: always
3838
environment:
39-
- 'HASURA_GRAPHQL_DATABASE_URL=postgres://postgres:postgrespassword@postgres:5432/postgres'
40-
- 'HASURA_GRAPHQL_ENABLE_CONSOLE=true'
41-
- 'HASURA_GRAPHQL_DEV_MODE=true'
42-
- 'HASURA_GRAPHQL_LOG_LEVEL=debug'
43-
- 'HASURA_GRAPHQL_ENABLED_LOG_TYPES=startup, http-log, webhook-log, websocket-log, query-log'
44-
- 'HASURA_GRAPHQL_ADMIN_SECRET=myadminsecretkey'
45-
- 'HASURA_GRAPHQL_JWT_SECRET={"type":"HS256","key":"3EK6FD+o0+c7tzBNVfjpMkNDi2yARAAKzQlk8O2IKoxQu4nF7EdAh8s3TwpHwrdWT6R"}'
46-
- 'HASURA_GRAPHQL_ENABLE_REMOTE_SCHEMA_PERMISSIONS=true'
47-
- 'HASURA_GRAPHQL_UNAUTHORIZED_ROLE=link'
39+
- 'HASURA_GRAPHQL_DATABASE_URL=${DEEP_HASURA_GRAPHQL_DATABASE_URL}'
40+
- 'HASURA_GRAPHQL_ENABLE_CONSOLE=${DEEP_HASURA_GRAPHQL_ENABLE_CONSOLE}'
41+
- 'HASURA_GRAPHQL_DEV_MODE=${DEEP_HASURA_GRAPHQL_DEV_MODE}'
42+
- 'HASURA_GRAPHQL_LOG_LEVEL=${DEEP_HASURA_GRAPHQL_LOG_LEVEL}'
43+
- 'HASURA_GRAPHQL_ENABLED_LOG_TYPES=${DEEP_HASURA_GRAPHQL_ENABLED_LOG_TYPES}'
44+
- 'HASURA_GRAPHQL_ADMIN_SECRET=${DEEP_HASURA_GRAPHQL_ADMIN_SECRET}'
45+
- 'HASURA_GRAPHQL_JWT_SECRET=${DEEP_HASURA_GRAPHQL_JWT_SECRET}'
46+
- 'HASURA_GRAPHQL_ENABLE_REMOTE_SCHEMA_PERMISSIONS=${DEEP_HASURA_GRAPHQL_ENABLE_REMOTE_SCHEMA_PERMISSIONS}'
47+
- 'HASURA_GRAPHQL_UNAUTHORIZED_ROLE=${DEEP_HASURA_GRAPHQL_UNAUTHORIZED_ROLE}'
4848
logging:
4949
driver: "json-file"
5050
options:
5151
max-size: 10m
5252
max-file: "3"
5353
storage:
5454
container_name: deep-hasura-storage
55-
image: nhost/hasura-storage:0.2.3
55+
image: nhost/hasura-storage:0.6.1
56+
networks:
57+
- network
5658
depends_on:
5759
- hasura
58-
restart: unless-stopped
60+
restart: always
5961
ports:
60-
- '8000:8000'
62+
- "${DEEP_HASURA_STORAGE_PORT}:8000"
63+
extra_hosts: ['host.docker.internal:host-gateway']
6164
environment:
62-
- 'DEBUG=true'
63-
- 'HASURA_METADATA=1'
64-
- 'HASURA_ENDPOINT=http://host.docker.internal:8080/v1'
65-
- 'HASURA_GRAPHQL_ADMIN_SECRET=myadminsecretkey'
66-
- 'S3_ENDPOINT=http://host.docker.internal:9000'
67-
- 'S3_ACCESS_KEY=minioaccesskey'
68-
- 'S3_SECRET_KEY=miniosecretkey'
69-
- 'S3_BUCKET=default'
70-
- 'S3_ROOT_FOLDER=default'
71-
- 'POSTGRES_MIGRATIONS=0'
72-
- 'POSTGRES_MIGRATIONS_SOURCE=postgres://postgres:[email protected]:5432/postgres?sslmode=disable'
65+
- 'PORT=8000'
66+
- 'DATABASE_URL=${DEEP_HASURA_STORAGE_POSTGRES_MIGRATIONS_SOURCE}'
67+
- 'GRAPHQL_ENGINE_BASE_URL=${DEEP_HASURA_STORAGE_HASURA_ENDPOINT}'
68+
- 'GRAPHQL_ENDPOINT=${DEEP_HASURA_STORAGE_HASURA_ENDPOINT}'
69+
- 'HASURA_GRAPHQL_ADMIN_SECRET=${DEEP_HASURA_STORAGE_HASURA_GRAPHQL_ADMIN_SECRET}'
70+
- 'JWT_SECRET=${DEEP_HASURA_GRAPHQL_JWT_SECRET}'
7371
command: serve
7472
logging:
7573
driver: "json-file"
@@ -79,40 +77,25 @@ services:
7977
minio:
8078
container_name: deep-minio
8179
image: minio/minio:RELEASE.2023-09-30T07-02-29Z
80+
networks:
81+
- network
8282
restart: always
8383
volumes:
8484
- 'minio-data:/export'
8585
- 'minio-config:/root/.minio'
8686
ports:
87-
- '9000:9000'
88-
- '32765:32765'
87+
- "${DEEP_MINIO_PORT}:9000"
88+
- "${DEEP_MINIO_CONSOLE_PORT}:32765"
8989
environment:
90-
- 'MINIO_ROOT_USER=minioaccesskey'
91-
- 'MINIO_ROOT_PASSWORD=miniosecretkey'
90+
- 'MINIO_ROOT_USER=${DEEP_MINIO_ROOT_USER}'
91+
- 'MINIO_ROOT_PASSWORD=${DEEP_MINIO_ROOT_PASSWORD}'
9292
entrypoint: sh
9393
command: '-c ''mkdir -p /export/default && /opt/bin/minio server --address 0.0.0.0:9000 --console-address 0.0.0.0:32765 /export'''
9494
logging:
9595
driver: "json-file"
9696
options:
9797
max-size: 10m
9898
max-file: "3"
99-
case:
100-
container_name: deep-case
101-
image: deepf/deepcase:main
102-
networks:
103-
- network
104-
ports:
105-
- "3007:3007"
106-
restart: always
107-
pull_policy: always
108-
volumes:
109-
- /var/run/docker.sock:/var/run/docker.sock
110-
extra_hosts: ['host.docker.internal:host-gateway']
111-
logging:
112-
driver: "json-file"
113-
options:
114-
max-size: 10m
115-
max-file: "3"
11699
links:
117100
container_name: deep-links
118101
image: deepf/deeplinks:main
@@ -126,10 +109,10 @@ services:
126109
- /var/run/docker.sock:/var/run/docker.sock
127110
extra_hosts: ['host.docker.internal:host-gateway']
128111
environment:
129-
- 'DEEPLINKS_HASURA_PATH=deep-hasura:8080'
130-
- 'DEEPLINKS_HASURA_SSL=0'
131-
- 'DEEPLINKS_HASURA_SECRET=myadminsecretkey'
132-
- 'JWT_SECRET={"type":"HS256","key":"3EK6FD+o0+c7tzBNVfjpMkNDi2yARAAKzQlk8O2IKoxQu4nF7EdAh8s3TwpHwrdWT6R"}'
112+
- 'DEEPLINKS_HASURA_PATH=${DEEPLINKS_HASURA_PATH}'
113+
- 'DEEPLINKS_HASURA_SSL=${DEEPLINKS_HASURA_SSL}'
114+
- 'DEEPLINKS_HASURA_SECRET=${DEEPLINKS_HASURA_SECRET}'
115+
- 'JWT_SECRET=${DEEP_HASURA_GRAPHQL_JWT_SECRET}'
133116
logging:
134117
driver: "json-file"
135118
options:
@@ -145,4 +128,5 @@ volumes:
145128
networks:
146129
network:
147130
name: deep-network
148-
driver: bridge
131+
driver: bridge
132+
external: true

local/actions/docker-compose.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,4 +145,5 @@ volumes:
145145
networks:
146146
network:
147147
name: deep-network
148-
driver: bridge
148+
driver: bridge
149+
external: true

local/deepcase/docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,4 @@ networks:
3333
network:
3434
name: deep-network
3535
driver: bridge
36+
external: true

local/docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,4 @@ networks:
4444
network:
4545
name: deep-network
4646
driver: bridge
47+
external: true
File renamed without changes.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@deep-foundation/deeplinks",
3-
"version": "0.0.439",
3+
"version": "0.0.440",
44
"license": "Unlicense",
55
"type": "module",
66
"scripts": {

docker-prod/deep/unix-start.sh renamed to unix-start.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
curl https://raw.githubusercontent.com/deep-foundation/deeplinks/main/docker-prod/deep/docker-compose.yml > ./docker-compose.yml
1+
curl https://raw.githubusercontent.com/deep-foundation/deeplinks/main/docker-compose.yml > ./docker-compose.yml
22
echo 'Clean and starting containers'
33
docker compose -p deep down -v --remove-orphans
44
docker compose pull

docker-prod/deep/windows-start.ps1 renamed to windows-start.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
wget -Uri "https://raw.githubusercontent.com/deep-foundation/deeplinks/main/docker-prod/deep/docker-compose.yml" -OutFile ".\docker-compose.yml"
2-
wget -Uri "https://raw.githubusercontent.com/deep-foundation/deeplinks/main/docker-prod/deep/open-deep.html" -OutFile ".\open-deep.html"
1+
wget -Uri "https://raw.githubusercontent.com/deep-foundation/deeplinks/main/docker-compose.yml" -OutFile ".\docker-compose.yml"
2+
wget -Uri "https://raw.githubusercontent.com/deep-foundation/deeplinks/main/open-deep.html" -OutFile ".\open-deep.html"
33
docker compose -p deep down -v --remove-orphans; docker compose pull; docker compose -p deep up -d
44
sleep 5
55
echo 'Migrating data'

0 commit comments

Comments
 (0)