21 lines
396 B
YAML
21 lines
396 B
YAML
services:
|
|
postgres:
|
|
image: postgres:18-alpine
|
|
container_name: postgres18
|
|
restart: unless-stopped
|
|
environment:
|
|
POSTGRES_DB: ${POSTGRES_DB}
|
|
POSTGRES_USER: ${POSTGRES_USER}
|
|
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
|
|
volumes:
|
|
- postgres_data:/var/lib/postgresql/data
|
|
networks:
|
|
- web
|
|
|
|
volumes:
|
|
postgres_data:
|
|
|
|
networks:
|
|
web:
|
|
external: true
|