-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
46 lines (40 loc) · 892 Bytes
/
docker-compose.yml
File metadata and controls
46 lines (40 loc) · 892 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
version: '2.1'
services:
bs_api:
container_name: bs_api
build: ./api
volumes:
- ./api:/var/www/html/api
depends_on:
bs_api_db:
condition: service_healthy
bk_nginx:
container_name: bs_nginx
build: images/nginx/development
volumes:
- ./logs:/var/www/logs
ports:
- 80:80
depends_on:
bs_api_db:
condition: service_healthy
bs_api_db:
container_name: bs_api_db
image: postgres:alpine
environment:
- "POSTGRES_USER=user"
- "POSTGRES_PASSWORD=password"
healthcheck:
test: psql -U user -w --list
interval: 2s
timeout: 5s
retries: 30
bs_client:
container_name: bs_client
build: ./client
working_dir: /var/www/html/client
command: "sh -c 'yarn && npm start'"
volumes:
- ./client:/var/www/html/client
ports:
- 4200:4200