weblate/ci/docker-compose-postgresql.yml
2020-07-08 16:50:51 +02:00

19 lines
498 B
YAML

version: "3"
services:
database:
# use version 10 to be compatible with pg_dump used in GitHub Actions
image: postgres:10
ports:
- 60000:5432
volumes:
# make postgres faster and non-durable, see https://www.postgresql.org/docs/current/non-durability.html
- ./postgres:/docker-entrypoint-initdb.d
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: weblate
cache:
image: redis:5-alpine
restart: always
ports:
- 60001:6379