-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
56 lines (53 loc) · 1.28 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
version: '3.5'
services:
db:
image: postgis/postgis:15-3.4
environment:
- POSTGRES_PASSWORD=geobakery
- POSTGRES_USER=postgres
- POSTGRES_DB=postgres
container_name: postgres
logging:
options:
max-size: 10m
max-file: "3"
volumes:
- ./sql/extensions.sql:/docker-entrypoint-initdb.d/extensions.sql
- ./sql/pg_restore.sh:/docker-entrypoint-initdb.d/pg_restore.sh
- ./sql/data:/docker-entrypoint-initdb.d/data
ports:
- '5432:5432'
healthcheck:
test: ["CMD-SHELL", "pg_isready -U \"$$POSTGRES_USER\""]
app:
build:
context: .
dockerfile: Dockerfile
container_name: nest
environment:
- WDS_SOCKET_HOST=127.0.0.1
- CHOKIDAR_USEPOLLING=true
- WATCHPACK_POLLING=true
ports:
- '3000:3000'
depends_on:
db:
condition: service_healthy
volumes:
- ./src:/app/src
- ./topic.json:/app/topic.json
- ./.env:/app/.env
- ./.env.dev:/app/.env.dev
pgadmin:
image: dpage/pgadmin4
container_name: pgadmin4
environment:
- PGADMIN_DEFAULT_PASSWORD=pgadmin4
ports:
- '5050:80'
depends_on:
db:
condition: service_healthy
links:
- db