mirror of
https://github.com/stonith404/pingvin-share.git
synced 2024-11-05 07:20:13 +01:00
45 lines
1.2 KiB
YAML
45 lines
1.2 KiB
YAML
version: '3.8'
|
|
services:
|
|
db:
|
|
image: postgres:14.1-alpine
|
|
restart: unless-stopped
|
|
environment:
|
|
- POSTGRES_USER=${DB_USER}
|
|
- POSTGRES_PASSWORD=${DB_PASSWORD}
|
|
- POSTGRES_DB=pingvin-share
|
|
volumes:
|
|
- pingvin-share-db:/var/lib/postgresql/data
|
|
backend:
|
|
image: pingvin-share/backend
|
|
restart: unless-stopped
|
|
environment:
|
|
- POSTGRES_USER=${DB_USER}
|
|
- POSTGRES_PASSWORD=${DB_PASSWORD}
|
|
- DB_HOST=${DB_HOST}
|
|
- DB_URL=postgresql://${DB_USER}:${DB_PASSWORD}@${DB_HOST}/pingvin-share?schema=public
|
|
- APP_URL=${APP_URL}
|
|
- ALLOW_REGISTRATION=${ALLOW_REGISTRATION}
|
|
- MAX_FILE_SIZE=${MAX_FILE_SIZE}
|
|
- JWT_SECRET=${JWT_SECRET}
|
|
ports:
|
|
- '8080:8080'
|
|
depends_on:
|
|
- db
|
|
volumes:
|
|
- "./uploads:/usr/src/app/uploads"
|
|
frontend:
|
|
restart: unless-stopped
|
|
ports:
|
|
- '3000:3000'
|
|
image: pingvin-share/frontend
|
|
environment:
|
|
- SHOW_HOME_PAGE=${SHOW_HOME_PAGE}
|
|
- ALLOW_REGISTRATION=${ALLOW_REGISTRATION}
|
|
- MAX_FILE_SIZE=${MAX_FILE_SIZE}
|
|
- BACKEND_URL=${BACKEND_URL}
|
|
depends_on:
|
|
- backend
|
|
|
|
|
|
volumes:
|
|
pingvin-share-db: |