2022-03-28 19:19:53 -04:00
|
|
|
services:
|
|
|
|
server:
|
2022-04-13 18:31:38 -04:00
|
|
|
build:
|
2022-03-28 22:26:16 -04:00
|
|
|
context: ./server
|
|
|
|
args:
|
2022-04-13 18:31:38 -04:00
|
|
|
- NODE_ENV=production
|
|
|
|
container_name: server
|
2022-03-28 19:19:53 -04:00
|
|
|
restart: unless-stopped
|
|
|
|
user: 1000:1000
|
|
|
|
environment:
|
2022-04-13 18:31:38 -04:00
|
|
|
- PORT
|
|
|
|
- JWT_SECRET=jwt_secret # change_me! # use `openssl rand -hex 32` to generate a strong secret
|
|
|
|
- SECRET_KEY=secret # change me!
|
|
|
|
- MEMORY_DB
|
|
|
|
- REGISTRATION_PASSWORD
|
|
|
|
- WELCOME_CONTENT
|
|
|
|
- WELCOME_TITLE
|
|
|
|
- ENABLE_ADMIN
|
|
|
|
- DRIFT_HOME
|
2022-03-28 22:26:16 -04:00
|
|
|
ports:
|
|
|
|
- "3000:3000"
|
2022-03-28 19:19:53 -04:00
|
|
|
client:
|
2022-03-28 22:26:16 -04:00
|
|
|
build:
|
|
|
|
context: ./client
|
|
|
|
args:
|
2022-04-13 18:31:38 -04:00
|
|
|
- API_URL=http://server:3000
|
|
|
|
container_name: client
|
2022-03-28 19:19:53 -04:00
|
|
|
restart: unless-stopped
|
|
|
|
user: 1000:1000
|
|
|
|
environment:
|
2022-04-13 18:31:38 -04:00
|
|
|
- API_URL=http://server:3000
|
|
|
|
- SECRET_KEY=secret # change me!
|
2022-03-28 22:26:16 -04:00
|
|
|
ports:
|
|
|
|
- "3001:3001"
|