-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
49 lines (46 loc) · 1.05 KB
/
docker-compose.yml
File metadata and controls
49 lines (46 loc) · 1.05 KB
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
version: '3.7'
volumes:
data:
driver: local
services:
shebanq:
image: shebanq:latest
platform: linux/amd64
container_name: shebanq
hostname: shebanq
environment:
runmode: ${runmode}
gitlocation: ${gitlocation}
hostname: ${hostname}
hostport: ${hostport}
web2pyadminpwd: ${web2pyadminpwd}
mysqlhost: ${mysqlhost}
mysqlroot: ${mysqlroot}
mysqlrootpwd: ${mysqlrootpwd}
mysqluser: ${mysqluser}
mysqluserpwd: ${mysqluserpwd}
blankuserdata: ${blankuserdata}
entrypoint:
- /bin/bash
- /app/start.sh
depends_on:
- db
volumes:
- ./:/app
ports:
- "${hostport}:${hostport}"
db:
image: mariadb:10
container_name: shebanqdb
hostname: shebanqdb
cap_add:
- SYS_NICE
restart: always
environment:
- MYSQL_DATABASE=quotes
- MYSQL_ROOT_PASSWORD=${mysqlrootpwd}
- MYSQL_USER=${mysqluser}
- MYSQL_PASSWORD=${mysqluserpwd}
volumes:
- data:/var/lib/mysql
- ./src/mysql:/etc/mysql/conf.d