-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
30 lines (29 loc) · 951 Bytes
/
docker-compose.yml
File metadata and controls
30 lines (29 loc) · 951 Bytes
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
version: '3.2'
services:
postgres:
hostname: postgres
image: pennsieve/postgres:16.3
platform: linux/amd64
environment:
POSTGRES_PASSWORD: password
PGPASSWORD: password
POSTGRES_USER: postgres
POSTGRES_DB: postgres
PGDATA: /opt/pgdata
healthcheck:
test: ["CMD-SHELL", "psql -U postgres -t postgres -c \"\\d+ pennsieve.users\""]
# Warning: Do not change this interval! Anything larger will slow down API tests.
interval: 1s
timeout: 1s
retries: 10
user: postgres
migrations:
image: pennsieve/migrations:latest
environment:
PENNSIEVE_POSTGRES_HOST: postgres
PENNSIEVE_POSTGRES_PORT: 5432
PENNSIEVE_POSTGRES_USER: postgres
PENNSIEVE_POSTGRES_PASSWORD: password
PENNSIEVE_POSTGRES_USE_SSL: "false"
# Override Cloudwrap entrypoint to use explicit environment variables
entrypoint: ["java", "-jar", "/app/migrations.jar"]