mirror of
https://github.com/hknsh/project-knedita.git
synced 2024-11-28 09:31:16 +00:00
30 lines
481 B
YAML
30 lines
481 B
YAML
|
version: '3.8'
|
||
|
|
||
|
services:
|
||
|
api:
|
||
|
container_name: api
|
||
|
restart: unless-stopped
|
||
|
build:
|
||
|
context: .
|
||
|
dockerfile: Dockerfile
|
||
|
ports:
|
||
|
- 8080:8080
|
||
|
depends_on:
|
||
|
- postgres
|
||
|
env_file:
|
||
|
- .env
|
||
|
|
||
|
postgres:
|
||
|
image: postgres:alpine
|
||
|
restart: unless-stopped
|
||
|
container_name: postgres
|
||
|
ports:
|
||
|
- 5432:5432
|
||
|
env_file:
|
||
|
- .env
|
||
|
volumes:
|
||
|
- postgres:/var/lib/postgresql/data
|
||
|
|
||
|
volumes:
|
||
|
postgres:
|
||
|
name: backend-db
|