version: '3' services: PostgreSQL: image: postgres:alpine ports: - 5432:5432 restart: always env_file: .env volumes: - "$ROOT/postgresql:/var/lib/postgresql/data" - ./setup/postgres/init.sql:/docker-entrypoint-initdb.d/init.sql adminer: image: adminer restart: always depends_on: - PostgreSQL ports: - 8080:8080 redis: image: redis:alpine restart: always volumes: - "$ROOT/redis:/data" web: build: ./setup/web/. command: npm run start volumes: - .:/user/app - /usr/app/node_modules ports: - 9000:9000 depends_on: - PostgreSQL - redis environment: - HOST=${HOST} - DATABASE=${POSTGRES_DB} - USER=${POSTGRES_USER} - PASSWORD=${POSTGRES_PASSWORD} - DATABASE_URL=${DATABASE_URL}