-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
33 lines (32 loc) · 849 Bytes
/
docker-compose.yml
File metadata and controls
33 lines (32 loc) · 849 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
31
32
33
services:
database-migrate:
image: migrate/migrate
container_name: kittemplate-database-migrate
volumes:
- ./resources/migrations:/resources/migrations
depends_on:
database:
condition: service_healthy
restart: on-failure
command:
- "-database"
- "postgres://kittemplate:kittemplate@database:5432/kittemplate?sslmode=disable"
- "-path"
- "/resources/migrations"
- "up"
database:
image: postgres:17.2-alpine
container_name: kittemplate-database
restart: always
environment:
POSTGRES_PASSWORD: kittemplate
POSTGRES_USER: kittemplate
POSTGRES_DB: kittemplate
ports:
- "5432:5432"
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U postgres" ]
interval: 3s
timeout: 30s
retries: 10
start_period: 5s