Skip to content

Commit ab7a1d7

Browse files
author
Pascal Klesse
committed
fix: fix plausible service
1 parent 46a8d66 commit ab7a1d7

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

projects/api/src/server/common/services/docker.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ DISABLE_REGISTRATION=false
203203
await this.createEnvFile(container);
204204
}
205205
await this.clonePlausibleRepo(container);
206-
compose = getPlausible(container);
206+
compose = getPlausible(container, this.getPath(container));
207207
break;
208208
case ContainerType.CUSTOM:
209209
compose = container.customDockerCompose;

projects/api/src/server/modules/container/types/service/plausible/compose.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Container } from "../../../container.model";
22

3-
export function getPlausible(container: Container): string {
3+
export function getPlausible(container: Container, basePath: string): string {
44
return `
55
networks:
66
traefik-public:
@@ -33,9 +33,9 @@ services:
3333
volumes:
3434
- clickhouseData:/var/lib/clickhouse
3535
- clickhouseLogs:/var/log/clickhouse-server
36-
- ./plausible-ce/clickhouse/logs.xml:/etc/clickhouse-server/config.d/logs.xml:ro
37-
- ./plausible-ce/clickhouse/ipv4-only.xml:/etc/clickhouse-server/config.d/ipv4-only.xml:ro
38-
- ./plausible-ce/clickhouse/low-resources.xml:/etc/clickhouse-server/config.d/low-resources.xml:ro
36+
- ${basePath}/plausible-ce/clickhouse/logs.xml:/etc/clickhouse-server/config.d/logs.xml:ro
37+
- ${basePath}/plausible-ce/clickhouse/ipv4-only.xml:/etc/clickhouse-server/config.d/ipv4-only.xml:ro
38+
- ${basePath}/plausible-ce/clickhouse/low-resources.xml:/etc/clickhouse-server/config.d/low-resources.xml:ro
3939
environment:
4040
CLICKHOUSE_SKIP_USER_SETUP: "1"
4141
ulimits:

0 commit comments

Comments
 (0)