2023-07-27 04:03:19 +03:00
|
|
|
version: "3.9"
|
|
|
|
services:
|
|
|
|
front:
|
|
|
|
build:
|
|
|
|
context: ..
|
|
|
|
dockerfile: ./infra/prod/front/Dockerfile
|
|
|
|
args:
|
2023-08-01 00:36:04 +03:00
|
|
|
REACT_APP_SERVER_BASE_URL: "http://localhost:3000"
|
2023-07-27 04:03:19 +03:00
|
|
|
ports:
|
|
|
|
- "3001:3000"
|
|
|
|
labels:
|
2023-08-01 00:36:04 +03:00
|
|
|
dev.ergomake.env.replace-arg.REACT_APP_SERVER_BASE_URL: "https://{{ services.server.url }}"
|
2023-07-27 04:03:19 +03:00
|
|
|
server:
|
|
|
|
build:
|
|
|
|
context: ..
|
|
|
|
dockerfile: ./infra/prod/server/Dockerfile
|
|
|
|
command: sh -c "yarn prisma migrate reset --force && node dist/src/main"
|
|
|
|
ports:
|
|
|
|
- "3000:3000"
|
|
|
|
environment:
|
|
|
|
DEBUG_MODE: false
|
2023-08-01 00:36:04 +03:00
|
|
|
IS_SIGN_IN_PREFILLED: true
|
2023-07-27 04:03:19 +03:00
|
|
|
ACCESS_TOKEN_SECRET: "secret_jwt"
|
|
|
|
LOGIN_TOKEN_SECRET: "secret_login_token"
|
|
|
|
REFRESH_TOKEN_SECRET: "secret_refresh_token"
|
|
|
|
PG_DATABASE_URL: "postgres://postgres:postgrespassword@postgres:5432/default?connection_limit=1"
|
2023-08-01 00:36:04 +03:00
|
|
|
FRONT_BASE_URL: "http://localhost:3000"
|
2023-07-27 04:03:19 +03:00
|
|
|
labels:
|
2023-08-01 00:36:04 +03:00
|
|
|
dev.ergomake.env.replace-env.FRONT_BASE_URL: "https://{{ services.server.url }}"
|
2023-07-27 04:03:19 +03:00
|
|
|
postgres:
|
|
|
|
build: ../infra/dev/postgres
|
|
|
|
environment:
|
|
|
|
POSTGRES_PASSWORD: postgrespassword
|
|
|
|
ports:
|
|
|
|
- "5432"
|
2023-07-27 04:46:18 +03:00
|
|
|
|