-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yaml
76 lines (69 loc) · 1.57 KB
/
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
version: '1'
name: nwtis_compose_file
networks:
nwtis:
name: nwtis
driver: bridge
external: true
ipam:
config:
- subnet: 20.24.5.0/24
gateway: 20.24.5.1
services:
app_s:
container_name: nwtis_app_c
image: nwtis_app_c
restart: unless-stopped
build:
dockerfile: ./Dockerfile.app
context: ./askarica20_vjezba_07_dz_2_app
networks:
nwtis:
ipv4_address: 20.24.5.2
hsql_s:
container_name: nwtis_hsql_dz_2c
image: nwtis_hsql_dz_2i
restart: unless-stopped
networks:
nwtis:
ipv4_address: 20.24.5.3
build:
dockerfile: ./Dockerfile.hsql
volumes:
- type: volume
source: nwtis_hsql_dz_2v
target: /opt/data
h2_s:
container_name: nwtis_h2_dz_2c
image: nwtis_h2_dz_2i
restart: unless-stopped
networks:
nwtis:
ipv4_address: 20.24.5.4
build:
dockerfile: ./Dockerfile.h2
volumes:
- type: volume
source: nwtis_h2_dz_2v
target: /opt/database
servisi_s:
container_name: nwtis_servisi_c
image: nwtis_servisi_c
restart: unless-stopped
networks:
nwtis:
ipv4_address: 20.24.5.5
build:
context: ./askarica20_vjezba_07_dz_2_servisi
dockerfile: ./Dockerfile.servisi
ports:
- 9080:8080
depends_on:
- h2_s
- hsql_s
- app_s
volumes:
nwtis_h2_dz_2v:
external: true
nwtis_hsql_dz_2v:
external: true