-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
55 lines (52 loc) · 1.32 KB
/
docker-compose.yaml
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
services:
backend:
image: medicines-backend
container_name: medicines-backend
build:
context: ./medicines
ports:
- "8080:8080"
depends_on:
- db
environment:
- DATASOURCE_URL=jdbc:postgresql://db/medicines
- DATASOURCE_USERNAME=medicines
- DATASOURCE_PWD=medicines
- WEBCLIENT_URL=
- HASS_TOKEN=
networks:
- medicines
restart: always
frontend:
image: medicines-frontend
container_name: medicines-frontend
build:
context: ./medicines-frontend
args:
ENVIRONMENT: dev
ports:
- "80:80"
depends_on:
- backend
networks:
- medicines
restart: always
db:
image: 'postgres'
container_name: db
environment:
- POSTGRES_USER=medicines
- POSTGRES_PASSWORD=medicines
ports:
- "5432:5432"
volumes:
- ./volumes/db:/var/lib/postgresql/data
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U medicines" ]
interval: 5s
timeout: 5s
retries: 5
networks:
- medicines
networks:
medicines: