services: psql: image: postgres:12.3 restart: always env_file: - .env volumes: - /opt/rick_db:/var/lib/postgresql/data #volumes: # rick-db-data: {} networks: - rick_db networks: rick_db: name: rick_db external: true