INNER CODE UNIT · TypeScript

buildSpec

PerryTS/perry · example-code/forgejo-deployment/main.ts:218

function buildSpec(c: StackConfig) {
  return {
    version: '3.8',
    services: {
      db: {
        image: `postgres:${c.pgVersion}`,
        container_name: c.dbHostname,
        restart: 'unless-stopped',
        environment: {
          POSTGRES_USER:     c.dbUser,
          POSTGRES_PASSWORD: c.dbPassword,
          POSTGRES_DB:       c.dbName,
          // Lets `pg_isready` find the right user without `-U`.
          PGUSER: c.dbUser,
        },
        volumes: ['forgejo-pgdata:/var/lib/postgresql/data'],
        networks: ['forgejo-db-net'],
        healthcheck: {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…