forked from skiddemon/ewok
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
72 lines (66 loc) · 1.32 KB
/
docker-compose.yml
File metadata and controls
72 lines (66 loc) · 1.32 KB
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:
services:
ewok-db:
image: postgres
container_name: db_2
restart: always
environment:
- DATABASE_HOST=127.0.0.1
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=docker
- POSTGRES_PORT=5432
- POSTGRES_DB=ewok
ports:
- '5432:5432'
networks:
- app-network
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
volumes:
- pgdatasource:/var/lib/postgresql/data
ewok-api:
build: api/
container_name: api_2
depends_on:
ewok-db:
condition: service_healthy
ports:
- '8080:8080'
networks:
- app-network
environment:
- NODE_ENV=development
- DATABASE_HOST=ewok-db
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=docker
- POSTGRES_PORT=5432
- POSTGRES_DB=ewok
volumes:
- type: bind
source: ./api
target: /app
command: npm run start
ewok-ui:
build: ui/
tty: true
container_name: ui_2
environment:
- FAST_REFRESH=false
depends_on:
- 'ewok-api'
ports:
- '3000:3000'
networks:
- app-network
volumes:
- type: bind
source: ./ui
target: /app
networks:
app-network:
driver: bridge