-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
64 lines (59 loc) · 2.46 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
version: '3.7'
# This file is a part of
# https://github.com/KazKobara/dockerfile_fswiki_local .
##### To launch multiple independent docker processes #####
# Modify the following variables to be unique to existing ones:
# - 'x-var: &REQUIRE_IP'
# - 'FSWIKI_PORT' in .env
# - 'container_name:' and 'image:' in the 'fswiki_local:' section.
# - Name and addresses in the following 'networks:' sectoin.
# -------------- Edit .env and Here ---------------
x-var: &REQUIRE_IP
## IP or network addresses to be accessed from.
## NOTE: docker-compose default network assigns, with round robin,
## 172.18-31.0.0/16 or 192.168.x.0/20 in 0.0.16.0 step
## to its default bridge network.
## For docker-compose default network:
# "172 192.168"
# "172.0.0.0\\\/11 192.168"
10.0.0.1
# ---------------------------------
services:
fswiki_local:
container_name: fswiki_${FSWIKI_PLATFORM}_local_dc_${FSWIKI_VERSION}
image: fswiki_${FSWIKI_PLATFORM}_local_dc:${FSWIKI_VERSION}
build:
context: .
dockerfile: "./${FSWIKI_PLATFORM}/Dockerfile"
args:
require_ip: *REQUIRE_IP
tag_version: ${TAG_VERSION}
owner_group: ${OWNER_GROUP}
fswiki_version: ${FSWIKI_VERSION}
fswiki_tmp_dir: ${FSWIKI_TMP_DIR}
volumes:
# Adding "" does not work.
- ${FSWIKI_DATA_ROOT}/data:/usr/local/apache2/htdocs/data
- ${FSWIKI_DATA_ROOT}/attach:/usr/local/apache2/htdocs/attach
- ${FSWIKI_DATA_ROOT}/config:/usr/local/apache2/htdocs/config
- ${FSWIKI_DATA_ROOT}/log:/usr/local/apache2/htdocs/log
# For DIFF action, backup/ and theme/resources/ are needed.
# - ${FSWIKI_DATA_ROOT}/backup:/usr/local/apache2/htdocs/backup
# Look and feel
# - ${FSWIKI_DATA_ROOT}/theme:/usr/local/apache2/htdocs/theme
# - ${FSWIKI_DATA_ROOT}/theme/resources:/usr/local/apache2/htdocs/theme/resources
# - ${FSWIKI_DATA_ROOT}/theme/kati_dark:/usr/local/apache2/htdocs/theme/kati_dark
# - ${FSWIKI_DATA_ROOT}/tmpl:/usr/local/apache2/htdocs/tmpl
ports:
- "${FSWIKI_PORT}:80"
restart: always
networks:
"10_0_0":
ipv4_address: 10.0.0.2
networks:
"10_0_0":
driver: bridge
ipam:
driver: default
config:
- subnet: 10.0.0.0/24