29 lines
705 B
YAML
29 lines
705 B
YAML
version: '3'
|
|
|
|
services:
|
|
app:
|
|
container_name: benotes_app
|
|
image: fr0tt/benotes:latest
|
|
restart: unless-stopped
|
|
environment:
|
|
DB_CONNECTION: ${DB_CONNECTION}
|
|
ports:
|
|
- ${APP_PORT}:80
|
|
volumes:
|
|
- .env:/var/www/.env
|
|
- ./appdata/benotes/storage:/var/www/storage
|
|
|
|
db:
|
|
container_name: benotes_db
|
|
image: postgres:15.2-alpine
|
|
restart: unless-stopped
|
|
environment:
|
|
POSTGRES_DATABASE: ${DB_DATABASE}
|
|
POSTGRES_USER: ${DB_USERNAME}
|
|
POSTGRES_PASSWORD: ${DB_PASSWORD}
|
|
ports:
|
|
- ${DB_PORT}
|
|
volumes:
|
|
- ./appdata/benotes/postgres/data:/var/lib/postgres/data
|
|
- ./appdata/benotes/postgres/data:/var/lib/postgresql/data
|