-
-
Notifications
You must be signed in to change notification settings - Fork 105
/
Copy pathcompose.perplexideez.yml
71 lines (68 loc) · 1.91 KB
/
compose.perplexideez.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
services:
# Proxy to work around the secure cookies
# and cors for localhost deployment
perplexideez:
container_name: ${HARBOR_CONTAINER_PREFIX}.perplexideez
image: nginx:alpine
ports:
- ${HARBOR_PERPLEXIDEEZ_HOST_PORT}:80
configs:
- source: perplexideez_proxy_config
target: /etc/nginx/conf.d/default.conf
depends_on:
perplexideez-service:
condition: service_healthy
networks:
- harbor-network
perplexideez-service:
container_name: ${HARBOR_CONTAINER_PREFIX}.perplexideez-service
image: ${HARBOR_PERPLEXIDEEZ_IMAGE}:${HARBOR_PERPLEXIDEEZ_VERSION}
env_file:
- ./.env
- ./perplexideez/override.env
healthcheck:
# TODO:
# https://github.com/brunostjohn/perplexideez/issues/12
test: ["CMD", "true"]
interval: 2s
timeout: 60s
retries: 5
start_period: 10s
depends_on:
perplexideez-db:
condition: service_healthy
perplexideez-migrate:
condition: service_completed_successfully
networks:
- harbor-network
perplexideez-db:
container_name: ${HARBOR_CONTAINER_PREFIX}.perplexideez-db
image: postgres:16-alpine
restart: unless-stopped
volumes:
- ./perplexideez/pgdata:/var/lib/postgresql/data
healthcheck:
test: "pg_isready -d postgres -U postgres -h localhost"
interval: 2s
timeout: 60s
retries: 5
env_file:
- ./.env
- ./perplexideez/override.env
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=postgres
networks:
- harbor-network
perplexideez-migrate:
container_name: ${HARBOR_CONTAINER_PREFIX}.perplexideez-migrate
image: ${HARBOR_PERPLEXIDEEZ_MIGRATE_IMAGE}
env_file:
- ./.env
- ./perplexideez/override.env
depends_on:
perplexideez-db:
condition: service_healthy
networks:
- harbor-network