-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
42 lines (38 loc) 路 900 Bytes
/
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
version: "3.8"
services:
app:
build:
context: .
args:
DEVELOPMENT: ${DEVELOPMENT:-0}
command: tail -f /dev/null
volumes:
- ./:/home/zednews/app/
env_file:
- .env
depends_on:
- db
db:
image: postgres:15.3
expose:
- 5432
environment:
- POSTGRES_USER=zednews_dev_user
- POSTGRES_PASSWORD=zednews_dev_password
- POSTGRES_DB=zednews_dev_db
- PGUSER=zednews_dev_user
- PGPASSWORD=zednews_dev_password
- PGDATABASE=zednews_dev_db
- POSTGRES_HOST_AUTH_METHOD=trust
volumes:
- postgres_data:/var/lib/postgresql/data/
pgweb:
image: sosedoff/pgweb:0.14.2
ports:
- 8081:8081
environment:
- PGWEB_DATABASE_URL=postgres://zednews_dev_user:zednews_dev_password@db:5432/zednews_dev_db?sslmode=disable
depends_on:
- db
volumes:
postgres_data: