2021-08-05 17:07:15 +00:00
|
|
|
version: "3.7"
|
|
|
|
|
|
|
|
services:
|
|
|
|
db:
|
|
|
|
image: postgres:13-alpine
|
|
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
|
|
- data:/var/lib/postgresql/data
|
2021-08-20 00:31:39 +00:00
|
|
|
env_file: ./.env #Here we are using the already existing .env file
|
2021-08-05 17:07:15 +00:00
|
|
|
ports:
|
|
|
|
- "5432:5432"
|
|
|
|
admin:
|
|
|
|
image: adminer
|
|
|
|
restart: unless-stopped
|
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
ports:
|
|
|
|
- 8080:8080
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
data:
|