forked from hashtopolis/server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
45 lines (45 loc) · 1013 Bytes
/
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
version: '3.8'
services:
hashtopolis:
container_name: hashtopolis
build: .
restart: always
volumes:
- ./src/import/:/var/www/html/import/:Z
- ./src/files/:/var/www/html/files/:Z
- ./src/inc/:/var/www/html/inc/:Z
depends_on:
- db
ports:
- 8080:80
cap_drop:
- ALL
cap_add:
# used to change files since non-priv user
- CHOWN
# used by apache to drop privs
- CAP_SETGID
- CAP_SETUID
db:
container_name: db
image: mysql:5.7
restart: always
volumes:
- db:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: $MYSQL_ROOT_PASS
MYSQL_DATABASE: $MYSQL_DB
MYSQL_USER: $MYSQL_USER
MYSQL_PASSWORD: $MYSQL_PASS
cap_drop:
- ALL
cap_add:
# used to change files since non-priv user
- CHOWN
# used because container uses find command
- CAP_DAC_READ_SEARCH
# used for the gosu binary
- CAP_SETGID
- CAP_SETUID
volumes:
db: