initial commit
This commit is contained in:
44
docker-compose.yml
Normal file
44
docker-compose.yml
Normal file
@@ -0,0 +1,44 @@
|
||||
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
db:
|
||||
image: postgres:15-alpine
|
||||
restart: always
|
||||
environment:
|
||||
POSTGRES_USER: obis
|
||||
POSTGRES_PASSWORD: securepassword123
|
||||
POSTGRES_DB: obis_db
|
||||
volumes:
|
||||
- postgres_data:/var/lib/postgresql/data
|
||||
ports:
|
||||
- "5432:5432"
|
||||
|
||||
backend:
|
||||
build: ./src/backend
|
||||
restart: always
|
||||
depends_on:
|
||||
- db
|
||||
environment:
|
||||
PORT: 3000
|
||||
# Use internal docker dns name 'db'
|
||||
DATABASE_URL: postgresql://obis:securepassword123@db:5432/obis_db?schema=public
|
||||
JWT_SECRET: super_secure_production_secret
|
||||
# MAIL_ settings for nodemailer (set real ones here)
|
||||
MAIL_HOST: smtp.ethereal.email
|
||||
MAIL_PORT: 587
|
||||
MAIL_USER: ethrel_user
|
||||
MAIL_PASS: ethrel_pass
|
||||
ports:
|
||||
- "3000:3000"
|
||||
|
||||
frontend:
|
||||
build: ./src/frontend
|
||||
restart: always
|
||||
ports:
|
||||
- "8080:80"
|
||||
depends_on:
|
||||
- backend
|
||||
|
||||
volumes:
|
||||
postgres_data:
|
||||
Reference in New Issue
Block a user