forked from s-tip/stip-common
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose_arm64.yml
63 lines (59 loc) · 1.33 KB
/
docker-compose_arm64.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
version: '3'
services:
stip:
image: seamlesstip/stip:2.0-arm64
platform: linux/arm64
restart: always
ports:
- "443:443"
- "10000:10000"
- "10001:10001"
- "8443:8443"
- "8444:8444"
environment:
MYSQL_DATABASE: s_tip
MYSQL_USER: stip
MYSQL_PASSWORD: stip
MYSQL_ROOT_PASSWORD: root
MYSQL_HOST: mysql
MONGO_HOST: mongo
command: ["apachectl", "-D", "FOREGROUND"]
volumes:
# for Community persistence
- ./data/rs_community:/opt/s-tip/rs/community
# for Apache logs
- ./log/stip:/var/log/apache2
depends_on:
- mysql
- mongo
mysql:
image: mysql:8
platform: linux/arm64/v8
restart: always
environment:
MYSQL_DATABASE: s_tip
MYSQL_USER: stip
MYSQL_PASSWORD: stip
MYSQL_ROOT_PASSWORD: root
ports:
- "3306:3306"
expose:
- "3306"
volumes:
# SQL for initial data
- ./mysql/initdb.d:/docker-entrypoint-initdb.d
# mount dir for DB persistence
- ./data/mysql_data:/var/lib/mysql
# conf
- ./mysql/conf.d:/etc/mysql/conf.d
mongo:
image: mongo:6.0.1
platform: linux/arm64/v8
restart: always
ports:
- "27017:27017"
expose:
- "27017"
volumes:
# mount dir for DB persistence
- ./data/mongo_data:/data/db