43 lines
990 B
YAML
43 lines
990 B
YAML
|
services:
|
||
|
app:
|
||
|
container_name: prime-chat
|
||
|
build:
|
||
|
context: .
|
||
|
dockerfile: ./Dockerfile
|
||
|
ports:
|
||
|
- 5173:5173
|
||
|
- 8080:8080
|
||
|
volumes:
|
||
|
- .:/var/www
|
||
|
depends_on:
|
||
|
- database
|
||
|
|
||
|
database:
|
||
|
image: postgres:16
|
||
|
container_name: postgres-16
|
||
|
restart: unless-stopped
|
||
|
environment:
|
||
|
POSTGRES_DB: ${DB_DATABASE}
|
||
|
POSTGRES_USER: ${DB_USERNAME}
|
||
|
POSTGRES_PASSWORD: ${DB_PASSWORD}
|
||
|
ports:
|
||
|
- 8991:5432
|
||
|
volumes:
|
||
|
- db_data:/var/lib/postgresql/data
|
||
|
|
||
|
# The Web Server
|
||
|
web:
|
||
|
image: nginx:1.26
|
||
|
container_name: nginx_server
|
||
|
volumes:
|
||
|
- ./storage/logs/:/var/log/nginx
|
||
|
- ./public:/var/www/public
|
||
|
- ./vhost.conf:/etc/nginx/conf.d/default.conf
|
||
|
ports:
|
||
|
- 8990:80
|
||
|
depends_on:
|
||
|
- app
|
||
|
|
||
|
volumes:
|
||
|
db_data:
|