diff options
Diffstat (limited to 'docker-compose.yml')
| -rw-r--r-- | docker-compose.yml | 26 |
1 files changed, 11 insertions, 15 deletions
diff --git a/docker-compose.yml b/docker-compose.yml index 84420a7..00693e5 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,26 +1,22 @@ version: "3.8" x-logging: &logging - logging: - driver: "json-file" - options: - max-file: "5" - max-size: "10m" - -x-restart-policy: &restart_policy - restart: "no" + driver: "json-file" + options: + max-file: "5" + max-size: "10m" services: postgres: - << : *logging - << : *restart_policy - image: postgres:13-alpine + 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"] + test: [ "CMD-SHELL", "pg_isready -U pysite" ] interval: 2s timeout: 1s retries: 5 @@ -28,9 +24,9 @@ services: - 5432:5432 metricity: - << : *logging - << : *restart_policy - depends_on: + logging: *logging + restart: "no" + depends_on: postgres: condition: service_healthy build: |