mirror of
https://github.com/bensuperpc/infrastructure.git
synced 2024-12-22 08:44:28 +01:00
Update env files
Signed-off-by: Bensuperpc <bensuperpc@gmail.com>
This commit is contained in:
parent
9aeeed0be0
commit
9ad6f0ad90
2
Makefile
2
Makefile
@ -20,7 +20,7 @@
|
||||
|
||||
DOCKER := docker
|
||||
|
||||
PROFILE := wp_db wordpress webserver certbot phpmyadmin flask_website flask_db qbittorrent
|
||||
PROFILE := wp_db wordpress webserver certbot phpmyadmin flask_website flask_db pgadmin qbittorrent
|
||||
PROFILE_CMD := $(addprefix --profile ,$(PROFILE))
|
||||
|
||||
COMPOSE_FILE := docker-compose.yml
|
||||
|
@ -59,12 +59,8 @@ services:
|
||||
- flask_db
|
||||
volumes:
|
||||
- ./bensuperpc_website:/app:rw
|
||||
environment:
|
||||
FLASK_DEBUG: "${FLASK_DEBUG:-1}"
|
||||
POSTGRES_URL: "${POSTGRES_URL:-flask_db:5432}"
|
||||
POSTGRES_USER: "${POSTGRES_USER:-postgres}"
|
||||
POSTGRES_PW: "${POSTGRES_PW:-postgres}"
|
||||
POSTGRES_DB: "${POSTGRES_DB:-website}"
|
||||
env_file:
|
||||
- env/flask_website.env
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- 5000:5000
|
||||
@ -76,11 +72,8 @@ services:
|
||||
profiles:
|
||||
- flask_db
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
POSTGRES_HOST_AUTH_METHOD: "${POSTGRES_HOST_AUTH_METHOD:-trust}"
|
||||
POSTGRES_USER: "${POSTGRES_USER:-postgres}"
|
||||
POSTGRES_PASSWORD: "${POSTGRES_PW:-postgres}"
|
||||
POSTGRES_DB: "${POSTGRES_DB:-website}"
|
||||
env_file:
|
||||
- env/flask_database.env
|
||||
# ports:
|
||||
# - 5432:5432
|
||||
volumes:
|
||||
@ -132,6 +125,18 @@ services:
|
||||
- wp_db
|
||||
networks:
|
||||
- app-network
|
||||
pgadmin:
|
||||
container_name: pgadmin_container
|
||||
image: dpage/pgadmin4:6.16
|
||||
profiles:
|
||||
- pgadmin
|
||||
restart: unless-stopped
|
||||
env_file:
|
||||
- env/pgadmin.env
|
||||
depends_on:
|
||||
- flask_db
|
||||
networks:
|
||||
- app-network
|
||||
volumes:
|
||||
certbot-etc:
|
||||
name: certbot-etc
|
||||
|
4
env/flask_database.env
vendored
Normal file
4
env/flask_database.env
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
POSTGRES_HOST_AUTH_METHOD=trust
|
||||
POSTGRES_USER=bensuperpc
|
||||
POSTGRES_PASSWORD=nPRh270dKH3hz%6HS2$X%8F3fqoQ*Fex
|
||||
POSTGRES_DB=website
|
7
env/flask_website.env
vendored
Normal file
7
env/flask_website.env
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
FLASK_DEBUG=1
|
||||
|
||||
# Acces to the database
|
||||
POSTGRES_URL=flask_db:5432
|
||||
POSTGRES_USER=bensuperpc
|
||||
POSTGRES_PW=nPRh270dKH3hz%6HS2$X%8F3fqoQ*Fex
|
||||
POSTGRES_DB=website
|
3
env/pgadmin.env
vendored
Normal file
3
env/pgadmin.env
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
PGADMIN_DEFAULT_EMAIL=bensuperpc@bensuperpc.org
|
||||
PGADMIN_DEFAULT_PASSWORD=LmRVf9DY291ez7B^^%2RntHcsCrJ5fQ!
|
||||
#PGADMIN_ENABLE_TLS
|
Loading…
Reference in New Issue
Block a user