
All checks were successful
Publish Docker Image / Publish Docker Image (push) Successful in 1m1s
49 lines
1.6 KiB
YAML
49 lines
1.6 KiB
YAML
version: '3.8'
|
|
|
|
services:
|
|
portfolio:
|
|
container_name: portfolio
|
|
image: git.altaiar.dev/ahmed/portfolio:latest
|
|
environment:
|
|
- NODE_ENV=production
|
|
- API_PROXY_TARGET=http://localhost:8911
|
|
- MAX_HTTP_CONNECTIONS_PER_MINUTE=60
|
|
- SESSION_SECRET=super_secret_session_key_change_me_in_production_please
|
|
- DATABASE_URL=postgresql://redwood:redwood@db:5432/portfolio
|
|
- FIRST_NAME=first name # Your first name
|
|
- LAST_NAME=lastname # Your last name
|
|
- GMAIL=example@gmail.com # The Gmail address associated with the app password created earlier
|
|
- GMAIL_SMTP_PASSWORD=aaaa bbbb cccc dddd # The app password created earlier
|
|
- DOMAIN=portfolio.example.com
|
|
- API_DOMAIN=api.portfolio.example.com
|
|
# Careful, addresses below must not end with a '/'
|
|
- ADDRESS_PROD=https://portfolio.example.com # https://DOMAIN
|
|
- API_ADDRESS_PROD=https://api.portfolio.example.com # https://API_DOMAIN
|
|
ports:
|
|
- '8910:8910' # Web
|
|
- '8911:8911' # API
|
|
depends_on:
|
|
- db
|
|
command: >
|
|
/bin/sh -c "
|
|
yarn rw build &&
|
|
yarn rw prisma migrate deploy &&
|
|
yarn rw prisma db seed &&
|
|
yarn rw serve"
|
|
|
|
|
|
db:
|
|
container_name: portfolio-db
|
|
image: postgres:16-bookworm
|
|
environment:
|
|
POSTGRES_USER: redwood
|
|
POSTGRES_PASSWORD: redwood
|
|
POSTGRES_DB: portfolio
|
|
ports:
|
|
- '5432:5432'
|
|
volumes:
|
|
- postgres:/var/lib/postgresql/data
|
|
|
|
volumes:
|
|
postgres:
|