a nice production stack on my laptop for my personal velociy system
This commit is contained in:
@@ -1,44 +1,44 @@
|
||||
services:
|
||||
database:
|
||||
cleanslate-database:
|
||||
image: postgres:15
|
||||
restart: always
|
||||
container_name: database
|
||||
container_name: cleanslate-database
|
||||
ports:
|
||||
- '${POSTGRES_PORT:-5432}:5432'
|
||||
- '35000:5432'
|
||||
environment:
|
||||
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
|
||||
POSTGRES_PASSWORD: 1234
|
||||
volumes:
|
||||
- database:/var/lib/postgresql/data
|
||||
- cleanslate-database:/var/lib/postgresql/data
|
||||
healthcheck:
|
||||
test: [ 'CMD-SHELL', 'pg_isready -U postgres']
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
|
||||
graphql-server:
|
||||
cleanslate-graphql-server:
|
||||
image: hasura/graphql-engine:latest.cli-migrations-v3
|
||||
restart: always
|
||||
container_name: graphql-server
|
||||
container_name: cleanslate-graphql-server
|
||||
ports:
|
||||
- '${HASURA_PORT:-8080}:8080'
|
||||
- '35001:8080'
|
||||
environment:
|
||||
HASURA_GRAPHQL_ADMIN_SECRET: ${HASURA_GRAPHQL_ADMIN_SECRET}
|
||||
HASURA_GRAPHQL_CORS_DOMAIN: https://${NEXT_PUBLIC_HASURA_DOMAIN}
|
||||
HASURA_GRAPHQL_DATABASE_URL: postgres://postgres:${POSTGRES_PASSWORD}@database:5432/postgres
|
||||
HASURA_GRAPHQL_DATABASE_URL: postgres://postgres:${POSTGRES_PASSWORD}@cleanslate-database:35000/postgres
|
||||
HASURA_GRAPHQL_DEV_MODE: false
|
||||
HASURA_GRAPHQL_ENABLE_CONSOLE: true
|
||||
HASURA_GRAPHQL_ENABLED_LOG_TYPES: startup, http-log, webhook-log, websocket-log, query-log
|
||||
HASURA_GRAPHQL_JWT_SECRET: ${HASURA_GRAPHQL_JWT_SECRET}
|
||||
volumes:
|
||||
- ./migrations:/hasura-migrations
|
||||
- ./metadata:/hasura-metadata
|
||||
- cleanslate-migrations:/hasura-migrations
|
||||
- cleanslate-metadata:/hasura-metadata
|
||||
depends_on:
|
||||
database:
|
||||
cleanslate-database:
|
||||
condition: service_healthy
|
||||
extra_hosts:
|
||||
- 'host.docker.internal:host-gateway'
|
||||
|
||||
authentication-server:
|
||||
cleanslate-authentication-server:
|
||||
image: ghcr.io/successible/cleanslate/authentication-server:latest
|
||||
build:
|
||||
context: .
|
||||
@@ -47,18 +47,18 @@ services:
|
||||
restart: always
|
||||
container_name: authentication-server
|
||||
ports:
|
||||
- '${AUTHENTICATION_SERVER_PORT:-3001}:3001'
|
||||
- '35002:3001'
|
||||
environment:
|
||||
HASURA_GRAPHQL_ADMIN_SECRET: ${HASURA_GRAPHQL_ADMIN_SECRET}
|
||||
JWT_SIGNING_SECRET: ${JWT_SIGNING_SECRET}
|
||||
NEXT_PUBLIC_USE_FIREBASE: ${NEXT_PUBLIC_USE_FIREBASE:-false}
|
||||
depends_on:
|
||||
- database
|
||||
- graphql-server
|
||||
- cleanslate-database
|
||||
- cleanslate-graphql-server
|
||||
extra_hosts:
|
||||
- 'host.docker.internal:host-gateway'
|
||||
|
||||
client:
|
||||
cleanslate-client:
|
||||
image: ghcr.io/successible/cleanslate/client:latest
|
||||
build:
|
||||
context: .
|
||||
@@ -77,12 +77,14 @@ services:
|
||||
restart: always
|
||||
container_name: client
|
||||
ports:
|
||||
- '${CLIENT_PORT:-3000}:3000'
|
||||
- '2010:3000'
|
||||
depends_on:
|
||||
- database
|
||||
- graphql-server
|
||||
- cleanslate-database
|
||||
- cleanslate-graphql-server
|
||||
extra_hosts:
|
||||
- 'host.docker.internal:host-gateway'
|
||||
|
||||
volumes:
|
||||
database:
|
||||
cleanslate-database:
|
||||
cleanslate-migrations:
|
||||
cleanslate-metadata:
|
Reference in New Issue
Block a user