diff options
| author | 2023-09-04 17:14:42 +0100 | |
|---|---|---|
| committer | 2023-09-04 17:14:42 +0100 | |
| commit | 5d37417a15c4099a224c9dce9f293ec76bc6460b (patch) | |
| tree | 31d79244ed4e304007728fec950b05392725fd2b /docker-compose.yml | |
| parent | Merge pull request #72 from python-discord/jb3/3.11-upgrade (diff) | |
| parent | Add alembic hook to format migrations on generation (diff) | |
Merge pull request #73 from python-discord/jb3/deps-and-toolchain-updates
Dependencies and Toolchain Updates
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: |