mirror of
https://github.com/cytopia/devilbox.git
synced 2025-02-21 01:42:14 +00:00
REL-0.9 Adding Bind (DNS Server)
This commit is contained in:
parent
baa2da8a3a
commit
ccef616189
@ -6,7 +6,8 @@
|
||||
## Local LAMP/LEMP stack
|
||||
##
|
||||
##
|
||||
##
|
||||
## ${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 --
|
||||
@ -26,13 +27,44 @@ version: '2.1'
|
||||
################################################################################
|
||||
services:
|
||||
|
||||
# ----------------------------------------
|
||||
# Bind (DNS Server)
|
||||
# ----------------------------------------
|
||||
bind:
|
||||
image: cytopia/bind:latest
|
||||
restart: always
|
||||
ports:
|
||||
# [local-machine:]local-port:docker-port
|
||||
- "${LOCAL_LISTEN_ADDR}${HOST_PORT_BIND}:53"
|
||||
- "${LOCAL_LISTEN_ADDR}${HOST_PORT_BIND}/udp:53/udp"
|
||||
environment:
|
||||
##
|
||||
## Debug?
|
||||
##
|
||||
- DEBUG_COMPOSE_ENTRYPOINT
|
||||
|
||||
##
|
||||
## Bind settings
|
||||
##
|
||||
- WILDCARD_DOMAIN=${TLD_SUFFIX:-loc}
|
||||
- WILDCARD_ADDRESS=172.16.238.11
|
||||
|
||||
dns:
|
||||
- 127.0.0.1
|
||||
|
||||
networks:
|
||||
app_net:
|
||||
ipv4_address: 172.16.238.100
|
||||
|
||||
|
||||
# ----------------------------------------
|
||||
# PHP-FPM
|
||||
# ----------------------------------------
|
||||
php:
|
||||
# TODO: remove latest, once it is ready for the next release
|
||||
image: cytopia/${PHP_SERVER:-php-fpm-5.4}:release-0.9
|
||||
#image: cytopia/${PHP_SERVER:-php-fpm-7.0}:latest
|
||||
#image: cytopia/${PHP_SERVER:-php-fpm-5.4}:latest
|
||||
image: cytopia/${PHP_SERVER:-php-fpm-7.0}:release-0.9
|
||||
restart: always
|
||||
|
||||
# Manually build via `docker-compose build`
|
||||
#build:
|
||||
@ -85,6 +117,7 @@ services:
|
||||
##
|
||||
# Ports
|
||||
- LOCAL_LISTEN_ADDR
|
||||
- HOST_PORT_BIND
|
||||
- HOST_PORT_HTTPD
|
||||
- HOST_PORT_MYSQL
|
||||
- HOST_PORT_PGSQL
|
||||
@ -110,6 +143,11 @@ services:
|
||||
app_net:
|
||||
ipv4_address: 172.16.238.10
|
||||
|
||||
dns:
|
||||
- 172.16.238.100
|
||||
- 8.8.8.8
|
||||
- 8.8.4.4
|
||||
|
||||
volumes:
|
||||
# ---- Format: ----
|
||||
# HOST-DIRECTORY : DOCKER-DIRECTORY
|
||||
@ -135,6 +173,8 @@ services:
|
||||
# (configured in /etc/${HTTPD_SERVER}/02-vhost-mass.conf)
|
||||
- ${HOST_PATH_HTTPD_DATADIR}:/shared/httpd
|
||||
|
||||
depends_on:
|
||||
- bind
|
||||
|
||||
# ----------------------------------------
|
||||
# HTTPD
|
||||
@ -142,6 +182,7 @@ services:
|
||||
httpd:
|
||||
# TODO: remove latest, once it is ready for the next release
|
||||
image: cytopia/${HTTPD_SERVER:-nginx-mainline}:latest
|
||||
restart: always
|
||||
|
||||
# Manually build via `docker-compose build`
|
||||
#build:
|
||||
@ -209,6 +250,7 @@ services:
|
||||
- ${HOST_PATH_HTTPD_DATADIR}:/shared/httpd:ro
|
||||
|
||||
depends_on:
|
||||
- bind
|
||||
- php
|
||||
|
||||
|
||||
@ -280,6 +322,7 @@ services:
|
||||
- ${HOST_PATH_MYSQL_DATADIR}/${MYSQL_SERVER}:/var/lib/mysql
|
||||
|
||||
depends_on:
|
||||
- bind
|
||||
- php
|
||||
- httpd
|
||||
|
||||
@ -323,6 +366,7 @@ services:
|
||||
- ${HOST_PATH_PGSQL_DATADIR}/${PGSQL_SERVER}:/var/lib/postgresql/data/pgdata
|
||||
|
||||
depends_on:
|
||||
- bind
|
||||
- php
|
||||
- httpd
|
||||
|
||||
@ -349,6 +393,7 @@ services:
|
||||
- ${DEVILBOX_PATH}/log/redis-${REDIS_SERVER}:/var/log/redis
|
||||
|
||||
depends_on:
|
||||
- bind
|
||||
- php
|
||||
- httpd
|
||||
|
||||
@ -375,6 +420,7 @@ services:
|
||||
- ${DEVILBOX_PATH}/log/memcached-${MEMCACHED_SERVER}:/var/log/memcached
|
||||
|
||||
depends_on:
|
||||
- bind
|
||||
- php
|
||||
- httpd
|
||||
|
||||
|
14
env-example
14
env-example
@ -354,6 +354,18 @@ HOST_PORT_REDIS=6379
|
||||
################################################################################
|
||||
|
||||
###
|
||||
### Expost Redis Port to Host
|
||||
### Expost Memcached Port to Host
|
||||
###
|
||||
HOST_PORT_MEMCACHED=11211
|
||||
|
||||
|
||||
################################################################################
|
||||
###
|
||||
### 9. Bind Docker Settings
|
||||
###
|
||||
################################################################################
|
||||
|
||||
###
|
||||
### Expost Bind Port to Host
|
||||
###
|
||||
HOST_PORT_BIND=53
|
||||
|
Loading…
x
Reference in New Issue
Block a user