blob: 2882ec655ecf0cfd44664d183c0bb9e02119d271 (
plain) (
blame)
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
|
x-logging: &logging
driver: "json-file"
options:
max-file: "5"
max-size: "10m"
services:
postgres:
logging: *logging
image: postgres:15-alpine
restart: "no"
environment:
POSTGRES_DB: pysite
POSTGRES_PASSWORD: pysite
POSTGRES_USER: pysite
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U pysite" ]
interval: 2s
timeout: 1s
retries: 5
ports:
- 5432:5432
metricity:
logging: *logging
restart: "no"
depends_on:
postgres:
condition: service_healthy
build:
context: .
dockerfile: Dockerfile
volumes:
- ./logs:/metricity/logs
- .:/metricity:ro
env_file:
- .env
environment:
DATABASE_URI: postgresql+asyncpg://pysite:pysite@postgres/metricity
|