-
Notifications
You must be signed in to change notification settings - Fork 10
/
docker-compose.yml
42 lines (37 loc) · 1.02 KB
/
docker-compose.yml
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
services:
app:
build: .
command: tail -f /dev/null
volumes:
- ./:/workspace:cached
pgadmin:
image: dpage/pgadmin4:8.9
restart: always
environment:
PGADMIN_DEFAULT_EMAIL: [email protected]
PGADMIN_DEFAULT_PASSWORD: devteds
PGADMIN_CONFIG_WTF_CSRF_HEADERS: '["Referer", "Origin"]'
PGADMIN_CONFIG_WTF_CSRF_ENABLED: 'False'
volumes:
- pgadmin-data:/var/lib/pgadmin
ports:
- 5050:80
depends_on:
- db
db:
image: postgres:12.19
restart: always
environment:
POSTGRES_USER: devtedsuser
POSTGRES_PASSWORD: devtedspass
POSTGRES_DB: demodb
volumes:
- pg-data:/var/lib/postgresql/data
# POSTGRES_HOST_AUTH_METHOD: "trust"
# PGHBA_CONF_CONTENT: |
# host all all 0.0.0.0/0 md5
# - ./pgdata:/var/lib/postgresql/data
# host all all 0.0.0.0/0 trust
volumes:
pgadmin-data:
pg-data: