-
Notifications
You must be signed in to change notification settings - Fork 46
/
docker-compose.yml
72 lines (66 loc) · 1.45 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
version: '3'
volumes:
pgdatasource:
pgadmin-data:
services:
capstone-db:
image: postgres
restart: always
environment:
- DATABASE_HOST=127.0.0.1
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=docker
- POSTGRES_PORT=5432
- POSTGRES_DB=capstone
ports:
- '5432:5432'
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
volumes:
- pgdatasource:/var/lib/postgresql/data
pgadmin:
container_name: pgadmin4_container
image: dpage/pgadmin4
restart: always
environment:
PGADMIN_DEFAULT_EMAIL: phillip.witkin@galvanize.com
PGADMIN_DEFAULT_PASSWORD: docker
PGADMIN_LISTEN_PORT: 80
ports:
- "8086:80"
volumes:
- pgadmin-data:/var/lib/pgadmin
depends_on:
- capstone-db
capstone-api:
build: api/
depends_on:
capstone-db:
condition: service_healthy
ports:
- '8080:8082'
environment:
- NODE_ENV=development
- DATABASE_HOST=capstone-db
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=docker
- POSTGRES_PORT=5432
- POSTGRES_DB=capstone
volumes:
- type: bind
source: ./api
target: /app
command: npm run start:dev
capstone-ui:
build: ui/
depends_on:
- 'capstone-api'
ports:
- '3001:3000'
volumes:
- type: bind
source: ./ui/src
target: /app/src