db: restart: always image: postgres:latest environment: POSTGRES_PASSWORD: postgres POSTGRES_USER: postgres expose: - "5432"
nginx: restart: always build: ./nginx/ ports: - "80:80" volumes: - /www/static volumes_from: - server links: - server:server
server: restart: always command: stack exec yesod devel build: ./web/ expose: - "3000" links: - db volumes: - ./web:/usr/src/appFROM fpco/stack-buildRUN mkdir -p /usr/src/appWORKDIR /usr/src/appCOPY . /usr/src/appRUN stack builddocker-compose build
docker-compose up -dYou are not the owner of '/usr/src/app/.stack-work/'. Aborting to protect file permissions.Retry with '--allow-different-user' to disable this precaution.Executable named yesod not found on path: ["/usr/src/app/.stack-work/install/x86_64-linux/lts-5.11/7.10.3/bin","/root/.stack/snapshots/x86_64-linux/lts-5.11/7.10.3/bin","/opt/host/bin","/opt/stackage/lts-5/extra/bin","/opt/stackage/lts-5/ghc/bin","/opt/stackage/lts-5/tools/bin","/usr/local/sbin","/usr/local/bin","/usr/sbin","/usr/bin","/sbin","/bin"]The Stack image you're using doesn't have the yesod executable. You could build it by running stack build yesod-bin, but most likely you want to create your own build image that has all your dependencies precompiled.
--
You received this message because you are subscribed to the Google Groups "Yesod Web Framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to yesodweb+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.