-
-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathdocker-compose.yml
50 lines (47 loc) · 1007 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
46
47
48
49
50
version: "3.9"
services:
wikiless:
build:
context: .
dockerfile: Dockerfile
container_name: wikiless
hostname: wikiless
restart: always
networks:
wikiless_net:
ipv4_address: 172.4.0.6
environment:
REDIS_HOST: redis://172.4.0.5:6379
ports:
- "127.0.0.1:8180:8080" # change port if needed
security_opt:
- no-new-privileges:true
cap_drop:
- ALL
depends_on:
- wikiless_redis
wikiless_redis:
container_name: wikiless_redis
hostname: wikiless_redis
image: redis:latest
restart: always
networks:
wikiless_net:
ipv4_address: 172.4.0.5
user: nobody
read_only: true
security_opt:
- no-new-privileges:true
tmpfs:
- /data:size=10M,mode=0770,uid=65534,gid=65534,noexec,nosuid,nodev
cap_drop:
- ALL
cap_add:
- SETGID
- SETUID
- DAC_OVERRIDE
networks:
wikiless_net:
ipam:
config:
- subnet: 172.4.0.0/16