-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
37 lines (33 loc) · 851 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
37 lines (33 loc) · 851 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
version: "1.0"
services:
db-postgres:
image: db-postgres
volumes:
- ./db-postgres-data:/var/lib/postgresql/data
restart: always
container_name: db
build:
context: ./
dockerfile: ./Dockerfile
target: db
environment:
- POSTGRES_USER=${DB_POSTGRES_USER}
- POSTGRES_PASSWORD=${DB_POSTGRES_PASSWORD}
- POSTGRES_DB=${DB_NAME}
- SEED_FILE_NAME=${DB_POSTGRES_SEED}
ports:
- ${DB_POSTGRES_PORT}:${DB_POSTGRES_PORT}
db-pgadmin:
image: dpage/pgadmin4
volumes:
- ./db-pgadmin-data:/var/lib/pgadmin
restart: always
container_name: pgadmin
ports:
- "${DB_PGADMIN_PORT}:80"
environment:
PGADMIN_DEFAULT_EMAIL: ${DB_PGADMIN_USER}
PGADMIN_DEFAULT_PASSWORD: ${DB_PGADMIN_PASSWORD}
volumes:
db-postgres-data:
db-pgadmin-data: