-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
104 lines (84 loc) · 2.62 KB
/
docker-compose.yml
File metadata and controls
104 lines (84 loc) · 2.62 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
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
##
## -------------------------
## | docker cmfive docs |
## -------------------------
##
## Local JEKYLL service support
##
##
## ${VARIABLE:-default} will evaluate to default if VARIABLE is unset or empty in the environment.
## ${VARIABLE-default} will evaluate to default only if VARIABLE is unset in the environment.
##
##
## -- DO NOT EDIT THIS FILE --
## instead, edit 'docker-compose.override.yml' with your custom changes (override or even new services).
##
## Edit '.env' for configuration.
version: '2.1'
################################################################################
# NETWORK
################################################################################
networks:
doc_app_net:
driver: bridge
driver_opts:
com.docker.network.enable_ipv6: "false"
ipam:
driver: default
config:
- subnet: 172.20.238.0/24
gateway: 172.20.238.1
################################################################################
# SERVICES
################################################################################
#Elaborating:
#docker run --rm --volume="$PWD:/srv/jekyll" -it jekyll/jekyll:$JEKYLL_VERSION jekyll build
services:
# Custom setup for Docker image here:
jekyll:
image: jekyll/jekyll:4.0.1
hostname: jekyll
#ports:
#- '4000:4000'
networks:
doc_app_net:
ipv4_address: 172.20.238.80
command: jekyll ${JEKYLL_EXEC} ${JEKYLL_CONF_EXEC}
volumes:
- ${JEKYLL_PATH}:/srv/jekyll:rw${MOUNT_OPTIONS}
- jekyll-bundles:/usr/local/bundle:rw${MOUNT_OPTIONS}
environment:
##
## Debug/Logging
##
- DEBUG_ENTRYPOINT=${DEBUG_COMPOSE_ENTRYPOINT}
- DEBUG_COMPOSE_ENTRYPOINT
- DOCKER_LOGS
- JEKYLL_ENV=docker
# End of custom Docker image
# Custom setup for Docker image here:
tlsproxy:
image: nginx:1-alpine
hostname: tlsproxy
ports:
- '4001:4001'
- '4002:4002'
networks:
doc_app_net:
ipv4_address: 172.20.238.81
volumes:
- ${NGINX_CONFIG_PATH}:/etc/nginx/conf.d:rw${MOUNT_OPTIONS}
environment:
##
## Debug/Logging
##
- DEBUG_ENTRYPOINT=${DEBUG_COMPOSE_ENTRYPOINT}
- DEBUG_COMPOSE_ENTRYPOINT
- DOCKER_LOGS
# End of custom Docker image
################################################################################
# VOLUMES
################################################################################
volumes:
jekyll-bundles:
jekyll-nginx: