2022-10-09 22:30:32 +02:00
|
|
|
version: '3.8'
|
2022-04-25 15:15:17 +02:00
|
|
|
services:
|
2022-10-09 22:30:32 +02:00
|
|
|
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:
|
2022-10-10 17:59:02 +02:00
|
|
|
image: stonith404/pingvin-share-backend
|
2022-10-09 22:30:32 +02:00
|
|
|
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}
|
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
volumes:
|
|
|
|
- "./uploads:/usr/src/app/uploads"
|
|
|
|
frontend:
|
|
|
|
restart: unless-stopped
|
|
|
|
ports:
|
|
|
|
- '3000:3000'
|
2022-10-10 17:59:02 +02:00
|
|
|
image: stonith404/pingvin-share-frontend
|
2022-10-09 22:30:32 +02:00
|
|
|
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:
|