-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
37 lines (35 loc) · 890 Bytes
/
docker-compose.yaml
File metadata and controls
37 lines (35 loc) · 890 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
34
35
36
37
version: '3.8'
services:
postgres:
image: postgres:13-alpine
ports:
- 5432:5432
healthcheck:
test: [ "CMD", "pg_isready", "-q", "-d", "postgres", "-U", "root" ]
timeout: 45s
interval: 10s
retries: 10
restart: unless-stopped
environment:
POSTGRES_USER: "lrjq"
POSTGRES_PASSWORD: "lrjq"
POSTGRES_DB: "queue"
PGDATA: "/data/postgres"
volumes:
# - ./db-data/:/var/lib/postgresql/data
- ./.postgres_init.sql:/docker-entrypoint-initdb.d/postgres_init.sql
queue:
build:
context: .
target: development
ports:
- 8796:8796
volumes:
- ./:/app/
depends_on:
- postgres
environment:
TEST_POSTGRES_CONN: postgres://lrjq:lrjq@postgres:5432/testdb
POSTGRES_CONN_STR: postgres://lrjq:lrjq@postgres:5432/queue
PORT: 8796
LOG_LEVEL: INFO