Pulumi code for my server setup
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

move postgres-tranquil data from volume to bind mount

+7 -11
+7 -11
services/haring/atproto/tranquil/tranquil.ts
··· 33 33 ), 34 34 customTimeouts: { 35 35 create: "30m", 36 + update: "30m", 36 37 }, 37 38 }, 38 39 ); 39 40 40 41 const postgresTranquilService = new ContainerService("postgres-tranquil", { 41 42 image: "postgres", 42 - volumes: [ 43 - { 44 - volumeName: "postgres-tranquil", 45 - containerPath: "/var/lib/postgresql", 46 - }, 47 - ], 43 + mounts: [confMount("postgres-tranquil", "/var/lib/postgresql")], 48 44 envs: { 49 45 POSTGRES_PASSWORD: getEnv("POSTGRES_PASSWORD"), 50 46 POSTGRES_DB: "pds", ··· 59 55 }); 60 56 61 57 const PDS_USER_HANDLE_DOMAINS = ["tranquil.bas.sh", "t.bas.sh", "on.bas.sh", "of.bas.sh"]; 62 - export const tranquilDnsRecords = PDS_USER_HANDLE_DOMAINS.flatMap((host) => [ 58 + for (const host of PDS_USER_HANDLE_DOMAINS) { 63 59 new DnsRecord(`tranquil-${host}`, { 64 60 zoneId: getEnv("CLOUDFLARE_ZONE_ID"), 65 61 name: host, ··· 67 63 type: "CNAME", 68 64 content: "haring.bas.sh", 69 65 proxied: false, 70 - }), 66 + }); 71 67 new DnsRecord(`tranquil-wildcard-${host}`, { 72 68 zoneId: getEnv("CLOUDFLARE_ZONE_ID"), 73 69 name: `*.${host}`, ··· 75 71 type: "CNAME", 76 72 content: "tranquil.bas.sh", 77 73 proxied: false, 78 - }), 79 - ]); 74 + }); 75 + } 80 76 81 77 export const tranquilService = new ContainerService( 82 78 "tranquil", ··· 128 124 "cloudflare,tranquil-user-redirect", 129 125 }, 130 126 }, 131 - { dependsOn: [...tranquilDnsRecords, copyMsmtprc] }, 127 + { dependsOn: [copyMsmtprc] }, 132 128 );