Add Docker support with Dockerfile and entrypoin
This commit is contained in:
parent
a41dfb6f94
commit
64f3b0cdbf
9 changed files with 208 additions and 2 deletions
40
docker-compose.yml
Normal file
40
docker-compose.yml
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
version: "3.9"
|
||||
|
||||
networks:
|
||||
photo26:
|
||||
|
||||
services:
|
||||
db:
|
||||
image: postgres:16
|
||||
container_name: photo26-db
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
POSTGRES_DB: photo26
|
||||
POSTGRES_USER: photo26
|
||||
POSTGRES_PASSWORD: change-me
|
||||
volumes:
|
||||
- ./postgres_data:/var/lib/postgresql/data
|
||||
networks:
|
||||
- photo26
|
||||
|
||||
photo26:
|
||||
image: git.sinfonie.org/sinfonie/photo26:latest
|
||||
container_name: photo26-app
|
||||
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
|
||||
volumes:
|
||||
- ./media:/app/media
|
||||
ports:
|
||||
- "8080:8000"
|
||||
networks:
|
||||
- photo26
|
||||
Loading…
Add table
Add a link
Reference in a new issue