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
|
image: postgres
|
||||||
restart: always
|
restart: always
|
||||||
environment:
|
environment:
|
||||||
POSTGRES_PASSWORD: MYSQL_ROOT_PASSWORD
|
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
|
||||||
POSTGRES_DB: MY_DATABASE
|
POSTGRES_DB: ${POSTGRES_DB}
|
||||||
POSTGRES_USER: MYSQL_USER
|
POSTGRES_USER: ${POSTGRES_USER}
|
||||||
volumes:
|
volumes:
|
||||||
- ./postgres/data:/var/lib/postgresql/data
|
- ./postgres/data:/var/lib/postgresql/data
|
||||||
pgadmin:
|
pgadmin:
|
||||||
@@ -28,7 +28,7 @@ services:
|
|||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- db
|
||||||
environment:
|
environment:
|
||||||
PGADMIN_DEFAULT_EMAIL: yaslonane@yandex.ru
|
PGADMIN_DEFAULT_EMAIL: ${PGADMIN_DEFAULT_EMAIL}
|
||||||
PGADMIN_DEFAULT_PASSWORD: A1qwerty
|
PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_DEFAULT_PASSWORD}
|
||||||
ports:
|
ports:
|
||||||
- 8080:80
|
- 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