Files
spoolman2/tests_integration/docker-compose-postgres.yml
Donkie 205574fa2c Fixed timezone being returned incorrectly
Happened if you've set TZ to non-UTC.

Apparently astimezone and replace doesn't do the same thing even if tzinfo is None.
2023-10-02 21:36:50 +02:00

30 lines
666 B
YAML

version: '3.8'
services:
db:
image: postgres:11-alpine
environment:
- POSTGRES_PASSWORD=abc
- TZ='GMT+4'
- PGTZ='GMT+4'
spoolman:
image: donkie/spoolman:test
environment:
- SPOOLMAN_DB_TYPE=postgres
- SPOOLMAN_DB_HOST=db
- SPOOLMAN_DB_PORT=5432
- SPOOLMAN_DB_NAME=postgres
- SPOOLMAN_DB_USERNAME=postgres
- SPOOLMAN_DB_PASSWORD=abc
- SPOOLMAN_LOGGING_LEVEL=INFO
- TZ=Europe/Stockholm
depends_on:
- db
tester:
image: donkie/spoolman-tester:latest
volumes:
- ./tests:/tester/tests
environment:
- DB_TYPE=postgres
depends_on:
- spoolman