port docker compose to postgres

This commit is contained in:
theycallhermax 2025-02-28 21:29:48 -05:00
parent d43b844456
commit e888f43ce7
No known key found for this signature in database
GPG key ID: 24D2803F3E25BF2D
3 changed files with 38 additions and 38 deletions

View file

@ -58,7 +58,7 @@
"topic": ""
},
"themeStoreUrl": "http://127.0.0.1:8000",
"username": "",
"username": "a",
"trimContentAfter": "150",
"charLimit": "512",
"anonName": "Anonymous",

View file

@ -1,44 +1,44 @@
name: catask
services:
mariadb:
environment:
MARIADB_ALLOW_EMPTY_ROOT_PASSWORD: 1
MARIADB_DATABASE: catask
MARIADB_USER: catask
MARIADB_PASSWORD: catask
MARIADB_ROOT_HOST: "%"
healthcheck:
test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"]
start_period: 10s
interval: 10s
timeout: 5s
retries: 3
image: mariadb
networks:
- catask
restart: always
volumes:
- ./schema.sql:/docker-entrypoint-initdb.d/1.sql
- db-data:/var/lib/mysql
postgres:
environment:
POSTGRES_DB: catask
POSTGRES_USER: catask
POSTGRES_PASSWORD: catask
healthcheck:
test: ["CMD", "pg_isready", "-U", "catask"]
interval: 1s
timeout: 5s
retries: 10
image: postgres:alpine
networks:
- catask
restart: always
volumes:
- ./schema.sql:/docker-entrypoint-initdb.d/catask.sql
- db-data:/var/lib/postgresql/data
catask:
build:
dockerfile: Dockerfile
depends_on:
mariadb:
condition: service_healthy
networks:
- catask
ports:
- "8000:8000"
volumes:
- ./config.json:/catask/config.json
- ./.env:/catask/.env
catask:
build:
dockerfile: Dockerfile
depends_on:
postgres:
condition: service_healthy
networks:
- catask
ports:
- "8000:8000"
restart: always
volumes:
- emoji-data:/catask/static/emojis
- ./config.json:/catask/config.json
- ./.env:/catask/.env
networks:
catask:
driver: bridge
catask:
driver: bridge
volumes:
db-data:
db-data:
emoji-data:

View file

@ -1,6 +1,6 @@
flask
python-dotenv
psycopg
psycopg[binary,pool]
humanize
mistune
bleach