fix: Plausible volume fixed

This commit is contained in:
Andras Bacsai 2022-02-18 22:05:02 +01:00
parent 2efca7a2b5
commit ea3ffc429f

View File

@ -60,7 +60,7 @@ export const post: RequestHandler = async (event) => {
}
},
postgresql: {
volume: `${plausibleDbId}-postgresql-data:/var/lib/postgresql/data`,
volume: `${plausibleDbId}-postgresql-data:/bitnami/postgresql/`,
image: 'bitnami/postgresql:13.2.0',
environmentVariables: {
POSTGRESQL_PASSWORD: postgresqlPassword,
@ -136,7 +136,6 @@ COPY ./init-db.sh /docker-entrypoint-initdb.d/init-db.sh`;
'sh -c "sleep 10 && /entrypoint.sh db createdb && /entrypoint.sh db migrate && /entrypoint.sh db init-admin && /entrypoint.sh run"',
networks: [network],
environment: config.plausibleAnalytics.environmentVariables,
volumes: [config.postgresql.volume],
restart: 'always',
depends_on: [`${id}-postgresql`, `${id}-clickhouse`],
labels: makeLabelForServices('plausibleAnalytics')