-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
44 lines (41 loc) · 890 Bytes
/
docker-compose.yml
File metadata and controls
44 lines (41 loc) · 890 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
services:
pgadmin:
container_name: pgadmin
image: "dpage/pgadmin4"
restart: always
environment:
PGADMIN_DEFAULT_EMAIL: "${DB_EMAIL}"
PGADMIN_DEFAULT_PASSWORD: "${DB_PASSWORD}"
ports:
- "5080:80"
- "5443:443"
networks:
- aniway-network
env_file:
- ./.env
volumes:
- pgadmin:/var/lib/pgadmin
database:
container_name: database
image: "postgres:15-alpine"
environment:
POSTGRES_USER: "${DB_USER}"
POSTGRES_PASSWORD: "${DB_PASSWORD}"
POSTGRES_DB: "${DB_NAME}"
PG_DATA: "database:/data/postgres"
volumes:
- .:/docker-entrypoint-initdb.d
- database:/data/postgres
ports:
- "5431:5432"
restart: always
networks:
- aniway-network
env_file:
- ./.env
volumes:
database:
pgadmin:
networks:
aniway-network:
driver: bridge