services: dbpg: image: postgres restart: always environment: POSTGRES_PASSWORD: postgres volumes: - databasepg:/var/lib/postgresql/data - ./hostfiles:/hostfiles ports: - "5432:5432" volumes: databasepg: