Ajout de la configuration PostgreSQL dans le fichier .env et mise à jour de compose.yml pour inclure le service PostgreSQL.
This commit is contained in:
parent
97eba73158
commit
c967b58981
5
.env
5
.env
@ -21,3 +21,8 @@ NEXTCLOUD_HOST=cloud
|
||||
NEXTCLOUD_MYSQL_DATABASE=nextcloud
|
||||
NEXTCLOUD_ADMIN_USER=enkun
|
||||
NEXTCLOUD_ADMIN_PASSWORD=163222f8eb8e7726b543706dfd17f35da4fd004ddcb3dbee46f6d4e76ab10cfd
|
||||
|
||||
# Postgres
|
||||
POSTGRES_USER=enkun
|
||||
POSTGRES_PASSWORD=183d9ad665c9257703c2e0703f111d240266a56b33e10df04fb8c565e55e0b94
|
||||
POSTGRES_DB=enkun
|
||||
16
compose.yml
16
compose.yml
@ -6,6 +6,7 @@ volumes:
|
||||
portainer_data:
|
||||
mysql_data:
|
||||
nextcloud_data:
|
||||
postgresql_data:
|
||||
|
||||
services:
|
||||
traefik:
|
||||
@ -144,3 +145,18 @@ services:
|
||||
mysql:
|
||||
condition: service_healthy
|
||||
restart: unless-stopped
|
||||
|
||||
postgresql:
|
||||
container_name: neah-postgresql
|
||||
image: postgres:latest
|
||||
environment:
|
||||
POSTGRES_USER: ${POSTGRES_USER}
|
||||
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
|
||||
POSTGRES_DB: ${POSTGRES_DB}
|
||||
ports:
|
||||
- "5432:5432"
|
||||
volumes:
|
||||
- postgresql_data:/var/lib/postgresql/data
|
||||
networks:
|
||||
- default
|
||||
restart: unless-stopped
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user