forked from external-repos/ivatar-docker
Compare commits
2 Commits
3a79f9de5f
...
031b935584
| Author | SHA1 | Date | |
|---|---|---|---|
| 031b935584 | |||
| e9155b5169 |
19
.env.example
Normal file
19
.env.example
Normal file
@@ -0,0 +1,19 @@
|
||||
# Ivatar Configuration
|
||||
# Copy this file to .env and customize the values
|
||||
|
||||
# Site Configuration
|
||||
SITE_NAME=My Ivatar Instance
|
||||
BASE_URL=http://localhost:8080/avatar/
|
||||
SECURE_BASE_URL=https://your-domain.com/avatar/
|
||||
|
||||
# Database Configuration
|
||||
POSTGRES_PASSWORD=ivatar_secure_password_change_me
|
||||
|
||||
# Email Configuration
|
||||
EMAIL_BACKEND=django.core.mail.backends.console.EmailBackend
|
||||
SERVER_EMAIL=ivatar@your-domain.com
|
||||
DEFAULT_FROM_EMAIL=ivatar@your-domain.com
|
||||
|
||||
# Mailgun Configuration (optional)
|
||||
# MAILGUN_API_KEY=your_mailgun_api_key
|
||||
# MAILGUN_SENDER_DOMAIN=your-domain.com
|
||||
44
compose.yml
Normal file
44
compose.yml
Normal file
@@ -0,0 +1,44 @@
|
||||
---
|
||||
services:
|
||||
postgres:
|
||||
image: postgres:16-alpine
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- postgres_data:/var/lib/postgresql/data
|
||||
environment:
|
||||
POSTGRES_DB: ivatar
|
||||
POSTGRES_USER: ivatar
|
||||
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-ivatar_secure_password}
|
||||
networks:
|
||||
- ivatar-network
|
||||
ivatar:
|
||||
image: gitea.purpleraft.com/ryan/ivatar-docker:latest
|
||||
restart: unless-stopped
|
||||
depends_on:
|
||||
- postgres
|
||||
ports:
|
||||
- '8080:8080'
|
||||
volumes:
|
||||
- ivatar_data:/ivatar/media
|
||||
environment:
|
||||
SITE_NAME: ${SITE_NAME:-My Ivatar Instance}
|
||||
BASE_URL: ${BASE_URL:-http://localhost:8080/avatar/}
|
||||
SECURE_BASE_URL: ${SECURE_BASE_URL:-https://your-domain.com/avatar/}
|
||||
POSTGRESQL_DATABASE: ivatar
|
||||
POSTGRESQL_USER: ivatar
|
||||
POSTGRESQL_PASSWORD: ${POSTGRES_PASSWORD:-ivatar_secure_password}
|
||||
POSTGRESQL_HOST: postgres
|
||||
POSTGRESQL_PORT: 5432
|
||||
EMAIL_BACKEND: ${EMAIL_BACKEND:-django.core.mail.backends.console.EmailBackend}
|
||||
SERVER_EMAIL: ${SERVER_EMAIL:-ivatar@your-domain.com}
|
||||
DEFAULT_FROM_EMAIL: ${DEFAULT_FROM_EMAIL:-ivatar@your-domain.com}
|
||||
networks:
|
||||
- ivatar-network
|
||||
|
||||
volumes:
|
||||
postgres_data: null
|
||||
ivatar_data: null
|
||||
|
||||
networks:
|
||||
ivatar-network:
|
||||
driver: bridge
|
||||
@@ -1,4 +1,10 @@
|
||||
#!/bin/ash
|
||||
|
||||
# Activate the virtual environment
|
||||
source .virtualenv/bin/activate
|
||||
|
||||
# Run Django migrations
|
||||
./manage.py migrate
|
||||
|
||||
# Start the Django development server
|
||||
exec ./manage.py runserver 0:8080
|
||||
|
||||
Reference in New Issue
Block a user