webcompile/compose.yml

26 lines
648 B
YAML
Raw Normal View History

2022-11-10 00:12:34 +05:30
services:
2022-12-30 23:26:51 +05:30
website:
container_name: website
#image: realprojectsegfault/website
restart: unless-stopped
build:
context: .
dockerfile: Dockerfile
2022-11-10 00:12:34 +05:30
ports:
2022-12-30 23:26:51 +05:30
- 1337:4173
website-db:
image: postgres
container_name: website-db
environment:
2022-12-30 23:26:51 +05:30
POSTGRES_USER: postgres
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
PGDATA: /data/postgres
POSTGRES_DB: website
volumes:
- website-db-data:/data/postgres
ports:
- "5432:5432"
restart: unless-stopped
volumes:
2022-12-30 23:26:51 +05:30
website-db-data: