-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
100 lines (94 loc) · 2.5 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
services:
aasportal-users:
image: mongo
container_name: aasportal-users
restart: always
ports:
- 27017:27017
volumes:
- mongodata:/data/db
environment:
- MONGO_INITDB_ROOT_USERNAME=${MONGO_INITDB_ROOT_USERNAME}
- MONGO_INITDB_ROOT_PASSWORD=${MONGO_INITDB_ROOT_PASSWORD}
- MONGO_INITDB_DATABASE=aasportal-users
aasportal-index:
image: mariadb
container_name: aasportal-index
command: --default-authentication-plugin=mysql_native_password
healthcheck:
interval: 30s
retries: 3
test:
[
"CMD",
"healthcheck.sh",
"--su-mysql",
"--connect",
"--innodb_initialized"
]
timeout: 30s
volumes:
- ./projects/aasportal-index/schema.sql:/docker-entrypoint-initdb.d/1.sql
- sqldata:/var/lib/mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
MYSQL_DATABASE: aas-index
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
ports:
- 3306:3306
aasportal-cloud-db:
image: mariadb
container_name: aasportal-cloud-db
restart: always
command: --transaction-isolation=READ-COMMITTED --log-bin=binlog --binlog-format=ROW
volumes:
- nextcloud_db:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=${NEXTCLOUD_MYSQL_ROOT_PASSWORD}
- MYSQL_PASSWORD=${NEXTCLOUD_PASSWORD}
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud
aasportal-cloud:
image: nextcloud
container_name: aasportal-cloud
restart: always
ports:
- 8080:80
links:
- aasportal-cloud-db
volumes:
- nextcloud:/var/www/html
environment:
- MYSQL_PASSWORD=${NEXTCLOUD_MYSQL_PASSWORD}
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud
- MYSQL_HOST=aasportal-cloud-db
- NEXTCLOUD_ADMIN_USER=${NEXTCLOUD_ADMIN_USER}
- NEXTCLOUD_ADMIN_PASSWORD=${NEXTCLOUD_ADMIN_PASSWORD}
- NEXTCLOUD_TRUSTED_DOMAINS=${NEXTCLOUD_TRUSTED_DOMAINS}
aas-server:
container_name: aas-server
build:
context: .
dockerfile: ./Dockerfile.aas-server
environment:
- USER_STORAGE=${USER_STORAGE}
- AAS_INDEX=${AAS_INDEX}
- TEMPLATE_STORAGE=${TEMPLATE_STORAGE}
ports:
- 1337:1337
aas-portal:
container_name: aas-portal
build:
context: .
dockerfile: ./Dockerfile.aas-portal
restart: always
ports:
- 80:80
volumes:
mongodata:
sqldata:
nextcloud_db:
nextcloud: