-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yml
More file actions
30 lines (29 loc) · 815 Bytes
/
Copy pathcompose.yml
File metadata and controls
30 lines (29 loc) · 815 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
name: gleam-cake-pog
networks:
gleam-cake-pog-test:
name: gleam-cake-pog-test
services:
postgres:
container_name: gleam-cake-pog-test-postgres
networks:
- gleam-cake-pog-test
image: postgres:latest
restart: unless-stopped
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=gleam_cake_pog_test
command: postgres -c 'max_connections=10'
ports:
- "127.0.0.1:5432:5432"
volumes:
- ./docker/data/postgres-data:/var/lib/postgresql/data
# - ./sql/create_tables.sql:/docker-entrypoint-initdb.d/create_tables.sql
healthcheck:
test: ["CMD-SHELL", "pg_isready", "-d", "gleam_cake_pog_test"]
interval: 30s
timeout: 60s
retries: 5
start_period: 80s
volumes:
gleam-cake-pog-test: