28 lines
436 B
YAML
28 lines
436 B
YAML
services:
|
|
app:
|
|
build: .
|
|
volumes:
|
|
- .:/root
|
|
expose:
|
|
- 5000
|
|
ports:
|
|
- 5000:5000
|
|
env_file:
|
|
- .env
|
|
entrypoint: /bin/bash
|
|
tty: true
|
|
user: root
|
|
depends_on:
|
|
- db
|
|
db:
|
|
image: postgres
|
|
volumes:
|
|
- postgres_data:/var/lib/postresql/data
|
|
expose:
|
|
- 5432
|
|
ports:
|
|
- 5432:5432
|
|
environment:
|
|
- POSTGRES_PASSWORD=pas123
|
|
volumes:
|
|
postgres_data: |