This commit is contained in:
parent
1de1cb4086
commit
997fd760d2
11 changed files with 99 additions and 37 deletions
|
|
@ -8,10 +8,11 @@ services:
|
|||
image: postgres:16
|
||||
container_name: photo26-db
|
||||
restart: unless-stopped
|
||||
env_file: .env
|
||||
environment:
|
||||
POSTGRES_DB: photo26
|
||||
POSTGRES_USER: photo26
|
||||
POSTGRES_PASSWORD: change-me
|
||||
POSTGRES_DB: ${DB_NAME:-photo26}
|
||||
POSTGRES_USER: ${DB_USER:-photo26}
|
||||
POSTGRES_PASSWORD: ${DB_PASSWORD}
|
||||
volumes:
|
||||
- ./postgres_data:/var/lib/postgresql/data
|
||||
networks:
|
||||
|
|
@ -23,15 +24,7 @@ services:
|
|||
restart: unless-stopped
|
||||
depends_on:
|
||||
- db
|
||||
environment:
|
||||
DB_ENGINE: postgres
|
||||
DB_NAME: photo26
|
||||
DB_USER: photo26
|
||||
DB_PASSWORD: change-me
|
||||
DB_HOST: db
|
||||
DB_PORT: 5432
|
||||
SECRET_KEY: change-me
|
||||
EXTRA_HOSTS: photos.example.org
|
||||
env_file: .env
|
||||
volumes:
|
||||
- ./media:/app/media
|
||||
ports:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue