26 lines
506 B
YAML
26 lines
506 B
YAML
services:
|
|
app:
|
|
image: app:latest
|
|
build:
|
|
context: docker
|
|
dockerfile: Dockerfile
|
|
ports:
|
|
- "9010:80"
|
|
volumes:
|
|
- ./:/var/www/html
|
|
- ./docker/nginx/default.conf:/etc/nginx/sites-enabled/default
|
|
|
|
postgres:
|
|
image: postgres:15
|
|
environment:
|
|
POSTGRES_USER: postgres
|
|
POSTGRES_PASSWORD: postgres
|
|
POSTGRES_DB: postgres
|
|
ports:
|
|
- "5432:5432"
|
|
volumes:
|
|
- ./var/postgres_data:/var/lib/postgresql/data
|
|
|
|
volumes:
|
|
postgres_data:
|