version: '3.4' services: db: container_name: bot-db image: postgres:11-alpine ports: - 5432:5432 environment: POSTGRES_USER: user POSTGRES_PASSWORD: password POSTGRES_DB: bot volumes: - bot-db:/var/lib/postgresql/data - /etc/localtime:/etc/localtime:ro volumes: bot-db: {}