33 lines
736 B
YAML
33 lines
736 B
YAML
name: baleen
|
|
|
|
services:
|
|
nginx:
|
|
image: nginx:1.27-alpine
|
|
ports:
|
|
- "8080:80"
|
|
volumes:
|
|
- ./:/var/www/html
|
|
- ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf
|
|
depends_on:
|
|
- php
|
|
postgres:
|
|
image: postgres:17-alpine
|
|
expose:
|
|
- 5432
|
|
environment:
|
|
POSTGRES_USER: postgres
|
|
POSTGRES_PASSWORD: password
|
|
POSTGRES_DB: baleen
|
|
php:
|
|
build:
|
|
context: .
|
|
dockerfile: docker/php/Dockerfile
|
|
expose:
|
|
- 9000
|
|
volumes:
|
|
- ./src:/var/www/html/src
|
|
- ./public:/var/www/html/public
|
|
- ./views:/var/www/html/views
|
|
- ./bin:/var/www/html/bin
|
|
environment:
|
|
DB_CONNECTION: postgres://postgres:password@postgres:5432/baleen |