You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
489 B
YAML
19 lines
489 B
YAML
services:
|
|
postgres:
|
|
image: postgres:17
|
|
container_name: cleo-postgres
|
|
restart: unless-stopped
|
|
environment:
|
|
POSTGRES_USER: postgres
|
|
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:?set POSTGRES_PASSWORD in .env}
|
|
POSTGRES_DB: cleo_auth
|
|
ports:
|
|
- "5432:5432"
|
|
volumes:
|
|
- cleo-pgdata:/var/lib/postgresql/data
|
|
|
|
volumes:
|
|
cleo-pgdata:
|
|
# Fixed name so the volume created earlier by `docker run -v cleo-pgdata:...` is reused.
|
|
name: cleo-pgdata
|