version: '3' services: gardenplanner-db: image: postgres restart: always environment: POSTGRES_USER: garden POSTGRES_PASSWORD: garden POSTGRES_DB: gardenPlaner volumes: - ./api/init.sql:/docker-entrypoint-initdb.d/init.sql gardenplanner-api: build: ./api restart: always depends_on: - gardenplanner-db ports: - 3000:3000 adminer: image: adminer restart: always ports: - 8080:8080