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
|
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))
|
PROFILE_CMD := $(addprefix --profile ,$(PROFILE))
|
||||||
|
|
||||||
COMPOSE_FILE := docker-compose.yml
|
COMPOSE_FILE := docker-compose.yml
|
||||||
|
@ -59,12 +59,8 @@ services:
|
|||||||
- flask_db
|
- flask_db
|
||||||
volumes:
|
volumes:
|
||||||
- ./bensuperpc_website:/app:rw
|
- ./bensuperpc_website:/app:rw
|
||||||
environment:
|
env_file:
|
||||||
FLASK_DEBUG: "${FLASK_DEBUG:-1}"
|
- env/flask_website.env
|
||||||
POSTGRES_URL: "${POSTGRES_URL:-flask_db:5432}"
|
|
||||||
POSTGRES_USER: "${POSTGRES_USER:-postgres}"
|
|
||||||
POSTGRES_PW: "${POSTGRES_PW:-postgres}"
|
|
||||||
POSTGRES_DB: "${POSTGRES_DB:-website}"
|
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
ports:
|
ports:
|
||||||
- 5000:5000
|
- 5000:5000
|
||||||
@ -76,11 +72,8 @@ services:
|
|||||||
profiles:
|
profiles:
|
||||||
- flask_db
|
- flask_db
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
environment:
|
env_file:
|
||||||
POSTGRES_HOST_AUTH_METHOD: "${POSTGRES_HOST_AUTH_METHOD:-trust}"
|
- env/flask_database.env
|
||||||
POSTGRES_USER: "${POSTGRES_USER:-postgres}"
|
|
||||||
POSTGRES_PASSWORD: "${POSTGRES_PW:-postgres}"
|
|
||||||
POSTGRES_DB: "${POSTGRES_DB:-website}"
|
|
||||||
# ports:
|
# ports:
|
||||||
# - 5432:5432
|
# - 5432:5432
|
||||||
volumes:
|
volumes:
|
||||||
@ -132,6 +125,18 @@ services:
|
|||||||
- wp_db
|
- wp_db
|
||||||
networks:
|
networks:
|
||||||
- app-network
|
- 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:
|
volumes:
|
||||||
certbot-etc:
|
certbot-etc:
|
||||||
name: 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