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 05:20:11 +03:00
|
|
|
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"
|
2023-08-10 08:24:15 +03:00
|
|
|
PG_DATABASE_URL: "postgres://twenty:twenty@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:
|
2023-08-10 08:24:15 +03:00
|
|
|
POSTGRES_PASSWORD: twenty
|
2023-07-27 04:03:19 +03:00
|
|
|
ports:
|
|
|
|
- "5432"
|