Сунулся проверять , работают ли контейнеры, а то не отдаётся ничего по http://localhost:3100
dima@dima-Lenovo-ideapad-720-15IKB:~/docker/docker-pivkarta$ docker-compose ps
Name Command State Ports
---------------------------------------------------------------------------------
docker-pivkarta_mysql_1 docker-entrypoint.sh mysqld Exit 0
docker-pivkarta_pivkarta.ru-2_1 bash -c yarn dev Exit 1
docker-pivkarta_pma_1 /docker-entrypoint.sh apac ... Exit 0
docker-pivkarta_proxy_1 /bin/parent caddy --conf / ... Exit 0
На контейнере сайта Exit 1: это хорошо или плохо?
docker logs docker-pivkarta_pivkarta.ru-2_1
--------------------------
yarn run v1.22.10
$ cross-env NODE_ENV=development TS_NODE_PROJECT=tsconfig.server.json ts-node-dev --ignore-watch .next --rs --no-notify --respawn --transpile-only server
[INFO] 13:12:04 ts-node-dev ver. 1.1.6 (using ts-node ver. 9.1.1, typescript ver. 4.2.3)
[HPM] Proxy created: / -> https://pivkarta.ru/api/
[HPM] Proxy rewrite rule created: "^/api(/|$)" ~> "/"
info - automatically enabled Fast Refresh for 1 custom loader
info - Using external babel configuration from /www/pivkarta.ru-2/.babelrc
[BABEL] Note: The code generator has deoptimised the styling of /www/pivkarta.ru-2/src/modules/gql/generated/types.ts as it exceeds the max of 500KB.
[BABEL] Note: The code generator has deoptimised the styling of /www/pivkarta.ru-2/src/modules/gql/generated/types.ts as it exceeds the max of 500KB.
event - compiled successfully
Attention: Next.js now collects completely anonymous telemetry regarding usage.
This information is used to shape Next.js' roadmap and prioritize features.
You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL:
https://nextjs.org/telemetry
> Ready on http://localhost:3000
event - build page: /
wait - compiling...
event - compiled successfully
event - build page: /city
wait - compiling...
event - compiled successfully
yarn run v1.22.10
$ cross-env NODE_ENV=development TS_NODE_PROJECT=tsconfig.server.json ts-node-dev --ignore-watch .next --rs --no-notify --respawn --transpile-only server
[INFO] 13:46:26 ts-node-dev ver. 1.1.6 (using ts-node ver. 9.1.1, typescript ver. 4.2.3)
[HPM] Proxy created: / -> https://pivkarta.ru/api/
[HPM] Proxy rewrite rule created: "^/api(/|$)" ~> "/"
info - automatically enabled Fast Refresh for 1 custom loader
info - Using external babel configuration from /www/pivkarta.ru-2/.babelrc
event - compiled successfully
> Ready on http://localhost:3000
event - build page: /city
wait - compiling...
event - compiled successfully
event - build page: /404
wait - compiling...
event - compiled successfully
-------------------------