Skip to content
Discussion options

You must be logged in to vote

For anyone wondering, I managed to get everything working by voluming Next.js directories:

version: "3.6"

services:
  postgres:
    image: postgres:12
    restart: always
    volumes:
      - db_data:/data
    env_file:
      - .env.build

  graphql-engine:
    image: hasura/graphql-engine:v1.2.0-beta.3
    ports:
      - "8080:8080"
    depends_on:
      - "postgres"
    restart: always
    env_file:
      - .env.build

  nextjs:
    container_name: nextjs
    build: .
    ports:
      - "3000:3000"
    restart: always
    env_file:
      - .env.build
    volumes:
      - ./pages:/app/pages
      - ./@:/app/@
      - ./public:/app/public

volumes:
  db_data:

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@xndyz
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by xndyz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants