-
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
32 lines (32 loc) · 624 Bytes
/
docker-compose.yaml
File metadata and controls
32 lines (32 loc) · 624 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
version: '3.8'
services:
db:
image: postgres:12
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: 0
POSTGRES_DB: postgres
ports:
- 5432:5432
volumes:
- ./data:/var/lib/postgresql/data
pgadmin:
image: dpage/pgadmin4
environment:
PGADMIN_DEFAULT_EMAIL: 'admin@admin.com'
PGADMIN_DEFAULT_PASSWORD: '000000'
ports:
- 9099:80
depends_on:
- db
restful:
image: guzhongren/deno-restful-api-with-pg
environment:
DB_HOST: db
ports:
- 9000:8000
links:
- db
depends_on:
- db
restart: on-failure