-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
105 lines (95 loc) · 2.27 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
version: '3'
networks:
konnex-net:
driver: bridge
volumes:
konnex-opcua-volume:
services:
nginx:
image: nginx
ports:
- "443:443"
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
- ./nginx/ssl:/etc/nginx/ssl:ro
- ./nginx/index.html:/app/html:ro
networks:
- konnex-net
depends_on:
- konnex-things
- konnex-users
- konnex-opcua
things-db:
image: mysql
ports:
- "3306:3306"
environment:
- MYSQL_ROOT_PASSWORD=konnexthings
- MYSQL_DATABASE=thingsdb
- MYSQL_ROOT_HOST=%
networks:
- konnex-net
konnex-things:
build:
context: .
dockerfile: ./Dockerfile
args:
SERVICE: things
ports:
- 8080:8080
depends_on:
- things-db
networks:
- konnex-net
users-db:
image: mysql
ports:
- "33061:3306"
environment:
- MYSQL_ROOT_PASSWORD=konnexusers
- MYSQL_DATABASE=usersdb
- MYSQL_ROOT_HOST=%
networks:
- konnex-net
konnex-users:
build:
context: .
dockerfile: ./Dockerfile
args:
SERVICE: users
ports:
- 8081:8081
- 9000:9000
networks:
- konnex-net
opcua-db:
image: timescale/timescaledb:latest-pg11
environment:
- POSTGRES_USER=opcua
- POSTGRES_PASSWORD=konnexopcua
- POSTGRES_DB=opcua
ports:
- "5432:5432"
networks:
- konnex-net
konnex-opcua:
build:
context: .
dockerfile: ./Dockerfile
args:
SERVICE: opcua
ports:
- 8082:8082
networks:
- konnex-net
depends_on:
- opcua-db
volumes:
- konnex-opcua-volume:/store
konnex-redis:
image: redis:6.2-alpine
restart: always
ports:
- '6379:6379'
networks:
- konnex-net