53 lines
1.3 KiB
YAML
53 lines
1.3 KiB
YAML
name: abc-user-feedback
|
|
|
|
services:
|
|
web:
|
|
image: line/abc-user-feedback-web:latest
|
|
environment:
|
|
- NEXT_PUBLIC_API_BASE_URL=http://localhost:4000
|
|
- SUPPORT_API_BASE_URL=http://secretary-api:8010
|
|
ports:
|
|
- 3002:3000
|
|
depends_on:
|
|
- api
|
|
- secretary-api
|
|
restart: unless-stopped
|
|
|
|
api:
|
|
image: line/abc-user-feedback-api:latest
|
|
environment:
|
|
- JWT_SECRET=jwtsecretjwtsecretjwtsecret
|
|
- MYSQL_PRIMARY_URL=mysql://userfeedback:userfeedback@mysql:3306/userfeedback
|
|
- SMTP_HOST=smtp4dev
|
|
- SMTP_PORT=25
|
|
- SMTP_SENDER=user@feedback.com
|
|
- OPENSEARCH_USE=true
|
|
- OPENSEARCH_NODE=http://opensearch-node:9200
|
|
ports:
|
|
- 4000:4000
|
|
restart: unless-stopped
|
|
|
|
secretary-api:
|
|
build:
|
|
context: ..
|
|
dockerfile: docker/secretary-api.dockerfile
|
|
environment:
|
|
- APP_NAME=secretary-api
|
|
- APP_ENV=local
|
|
- APP_HOST=0.0.0.0
|
|
- APP_PORT=8010
|
|
- DATABASE_URL=mysql+pymysql://baron_support:baron_support@mysql-secretary:3306/baron_support
|
|
- ABC_API_BASE_URL=http://api:4000
|
|
- ABC_API_KEY=3B1B08761D2DD0B9C021
|
|
- ABC_PROJECT_ID=1
|
|
- ABC_CHANNEL_ID=1
|
|
- UPLOAD_ROOT_DIR=/app/uploads
|
|
ports:
|
|
- 8010:8010
|
|
depends_on:
|
|
- api
|
|
- mysql-secretary
|
|
volumes:
|
|
- ../uploads:/app/uploads
|
|
restart: unless-stopped
|