-
Notifications
You must be signed in to change notification settings - Fork 15
/
docker-compose.yml
46 lines (44 loc) · 1.01 KB
/
docker-compose.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
version: '3'
x-logging: &default-logging
driver: "local"
options:
max-size: "20m"
max-file: "5"
services:
loan:
platform: linux/x86_64
build: .
image: ags131/loan
volumes:
- ./data/loan:/data
- ./data/storage:${OBJECT_STORAGE}
ports:
- 5000:5000
depends_on:
postgres:
condition: service_healthy
postgres:
image: postgres
environment:
POSTGRES_USER: ${DB_USERNAME}
POSTGRES_DB: ${DB}
POSTGRES_PASSWORD: ${DB_PASSWORD}
volumes:
- ./data/postgres:/var/lib/postgresql/data
healthcheck:
test: [ "CMD-SHELL", "pg_isready", "-U", "screeps" ]
ports:
- 127.0.0.1:5432:5432
pgbackups:
image: kartoza/pg-backup:14-3.2
restart: always
logging: *default-logging
depends_on:
- postgres
environment:
- POSTGRES_USER=${DB_USERNAME}
- POSTGRES_PASS=${DB_PASSWORD}
- POSTGRES_DB=${DB}
- POSTGRES_HOST=postgres
volumes:
- /var/opt/pgbackups:/backups