mirror of
https://github.com/Yaslonane/docker_php-apache-postgre.git
synced 2026-05-19 09:47:58 +03:00
add .env n\ fix login/password
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
#postgres
|
||||
|
||||
#POSTGRES_PASSWORD=password
|
||||
#POSTGRES_DB=first_db
|
||||
#POSTGRES_USER=user
|
||||
POSTGRES_PASSWORD=MYSQL_ROOT_PASSWORD
|
||||
POSTGRES_DB=MY_DATABASE
|
||||
POSTGRES_USER=MYSQL_USER
|
||||
|
||||
#pgadmin
|
||||
PGADMIN_DEFAULT_EMAIL=yaslonane@yandex.ru
|
||||
PGADMIN_DEFAULT_PASSWORD=A1qwerty
|
||||
+5
-5
@@ -16,9 +16,9 @@ services:
|
||||
image: postgres
|
||||
restart: always
|
||||
environment:
|
||||
POSTGRES_PASSWORD: MYSQL_ROOT_PASSWORD
|
||||
POSTGRES_DB: MY_DATABASE
|
||||
POSTGRES_USER: MYSQL_USER
|
||||
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
|
||||
POSTGRES_DB: ${POSTGRES_DB}
|
||||
POSTGRES_USER: ${POSTGRES_USER}
|
||||
volumes:
|
||||
- ./postgres/data:/var/lib/postgresql/data
|
||||
pgadmin:
|
||||
@@ -28,7 +28,7 @@ services:
|
||||
depends_on:
|
||||
- db
|
||||
environment:
|
||||
PGADMIN_DEFAULT_EMAIL: yaslonane@yandex.ru
|
||||
PGADMIN_DEFAULT_PASSWORD: A1qwerty
|
||||
PGADMIN_DEFAULT_EMAIL: ${PGADMIN_DEFAULT_EMAIL}
|
||||
PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_DEFAULT_PASSWORD}
|
||||
ports:
|
||||
- 8080:80
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user