Add DB + PGAdmin
This commit is contained in:
parent
b0a93feb79
commit
652f7e4878
10
.env
Normal file
10
.env
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
# Postgres
|
||||||
|
POSTGRES_SERVER=db
|
||||||
|
POSTGRES_USER=postgres
|
||||||
|
POSTGRES_PASSWORD=password
|
||||||
|
POSTGRES_DB=mev_inspect
|
||||||
|
|
||||||
|
# PgAdmin
|
||||||
|
PGADMIN_LISTEN_PORT=5050
|
||||||
|
PGADMIN_DEFAULT_EMAIL=admin@example.com
|
||||||
|
PGADMIN_DEFAULT_PASSWORD=password
|
@ -5,3 +5,6 @@ RUN pip install -r /app/requirements.txt
|
|||||||
|
|
||||||
COPY . /app
|
COPY . /app
|
||||||
WORKDIR /app/
|
WORKDIR /app/
|
||||||
|
|
||||||
|
ENTRYPOINT ["./run.sh"]
|
||||||
|
CMD []
|
||||||
|
@ -1,5 +1,32 @@
|
|||||||
services:
|
services:
|
||||||
mev-inspect:
|
mev-inspect:
|
||||||
build: .
|
build: .
|
||||||
|
depends_on:
|
||||||
|
- db
|
||||||
|
env_file:
|
||||||
|
- .env
|
||||||
volumes:
|
volumes:
|
||||||
- .:/app
|
- .:/app
|
||||||
|
|
||||||
|
db:
|
||||||
|
image: postgres:12
|
||||||
|
volumes:
|
||||||
|
- mev-inspect-db-data:/var/lib/postgresql/data/pgdata
|
||||||
|
env_file:
|
||||||
|
- .env
|
||||||
|
environment:
|
||||||
|
- PGDATA=/var/lib/postgresql/data/pgdata
|
||||||
|
|
||||||
|
pgadmin:
|
||||||
|
image: dpage/pgadmin4
|
||||||
|
networks:
|
||||||
|
- default
|
||||||
|
depends_on:
|
||||||
|
- db
|
||||||
|
env_file:
|
||||||
|
- .env
|
||||||
|
ports:
|
||||||
|
- "5050:5050"
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
mev-inspect-db-data:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user