-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
134 lines (124 loc) · 3.04 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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
version: '3.8'
networks:
alpha_network:
ipam:
driver: default
config:
# This is to manage mysql login security
# Amazon seems to want this one for DNS
#- subnet: 172.31.0.0/16
- subnet: 172.30.0.0/16
volumes:
db-volume-opensim:
name: db-volume-opensim
file-volume-opensim:
name: file-volume-opensim
services:
db:
build:
context: mariadb-service
args:
- TZ=${DP_TIME_ZONE}
networks:
- alpha_network
ports:
- "3306:3306/tcp"
volumes:
- type: volume
source: db-volume-opensim
target: /var/lib/mysql
volume:
nocopy: true
consistency: consistent
environment:
- TZ=${DP_TIME_ZONE}
- DP_DATABASE_USER
- DP_DATABASE_USER_PASSWORD
- MYSQL_ROOT_PASSWORD=${DP_DATABASE_ROOT_PASSWORD}
- MYSQL_INITDB_SKIP_TZINFO=${DP_INITDB_SKIP_TZINFO}
adminer:
image: adminer
restart: always
networks:
- alpha_network
ports:
- "8080:8080"
environment:
- TZ=${DP_TIME_ZONE}
# Instructions for backup and restore are in the README.md file
backup:
image: ubuntu
volumes:
- type: bind
source: ./backup_storage
target: /root/backup_storage
consistency: consistent
- type: volume
source: file-volume-opensim
target: /root/backupfile
read_only: true
volume:
nocopy: true
consistency: consistent
- type: volume
source: db-volume-opensim
target: /root/backupdb
read_only: true
volume:
nocopy: true
consistency: consistent
command: ["tail", "-f", "/dev/null"]
environment:
- TZ=${DP_TIME_ZONE}
mono:
build:
context: mono-service
args:
- TZ=${DP_TIME_ZONE}
links:
- "db:database"
networks:
- alpha_network
volumes:
- type: bind
source: ./backup_storage
target: /root/backup_storage
consistency: consistent
- type: volume
source: file-volume-opensim
target: /root
consistency: consistent
ports:
- "9000:9000/tcp"
- "9000:9000/udp"
- "9001:9001/udp"
- "9002:9002/udp"
- "9003:9003/udp"
depends_on:
- "db"
environment:
- DP_EXTERNAL_NETWORK
- DP_WORLD_NAME
- DP_ESTATE_01_NAME
- DP_ESTATE_OWNER_FIRST
- DP_ESTATE_OWNER_LAST
- DP_ESTATE_OWNER_PASSWORD
- DP_ESTATE_OWNER_EMAIL
- DP_WIFI_USER_PASSWORD
- DP_WIFI_USER_EMAIL
- DP_GMAIL_USER
- DP_GMAIL_PASSWORD
- DP_DATABASE_USER_PASSWORD
- DP_DATABASE_ROOT_PASSWORD
- DP_DATABASE_HOST
- DP_DATABASE
- DP_DATABASE_USER
- DP_INITDB_SKIP_TZINFO
- DP_INSTALL_ON_UNIX
- DP_WIFI_USER_FIRST
- DP_WIFI_USER_LAST
- DP_WIFI_ACCOUNT_STYLE
- DP_UNIVERSAL_CAMPUS
- TZ=${DP_TIME_ZONE}
- MYSQL_ROOT_PASSWORD=${DP_DATABASE_ROOT_PASSWORD}
- MYSQL_INITDB_SKIP_TZINFO=${DP_INITDB_SKIP_TZINFO}