10000 build a new way to initialize the proxy stack, by spawn each global s… · Sengorius/docker-proxy-stack@3ceef77 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3ceef77

Browse files
author
Sengorius
committed
build a new way to initialize the proxy stack, by spawn each global service in a shell file
1 parent d52833c commit 3ceef77

File tree

9 files changed

+552
-281
lines changed

9 files changed

+552
-281
lines changed

.env.template

Lines changed: 6 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -3,88 +3,23 @@
33
###
44

55
# the path to store your sql file to be imported
6-
DATA_PATH=./data
6+
export DATA_PATH="${BASE_DIR}/data"
77

88
# the path to the docker socket on host machine
9-
SOCK_PATH=/var/run/docker.sock
9+
export SOCK_PATH="/var/run/docker.sock"
1010

1111
# list of container name suffixes, that identify as webservice, e.g. NGINX
1212
# these containers should be configured with a VIRTUAL_HOST environment variable
1313
# separate multiple with pipes "|"
14-
WEB_CONTAINER_SUFFIXES=web
14+
export WEB_CONTAINER_SUFFIXES="web"
1515

1616
# list of container name suffixes, that identify as apps/microservices
1717
# separate multiple with pipes "|"
18-
APP_CONTAINER_SUFFIXES=app|php
18+
export APP_CONTAINER_SUFFIXES="app|php"
1919

2020
# this will attach to the docker logs of the proxy containers after executing
2121
# `DockerExec proxy init` if set to 1
22-
ATTACH_TO_COMPOSE_LOGS=1
23-
24-
25-
############################################################
26-
### Configure services
27-
###
22+
export ATTACH_TO_COMPOSE_LOGS=1
2823

2924
# the name of the local Docker network for this proxy-stack
30-
NETWORK_NAME=nginx-proxy
31-
32-
# the NGINX proxy
33-
PROXY_NAME=proxy-nginx
34-
35-
# the MySQL database
36-
DB_NAME=proxy-db
37-
DB_IMAGE=mysql:5.7
38-
39-
# the PostgreSQL database
40-
PG_NAME=proxy-pg
41-
PG_IMAGE=postgres:12
42-
43-
# the Redis data storage
44-
REDIS_NAME=proxy-redis
45-
REDIS_IMAGE=redis:6
46-
47-
# PhpMyAdmin tool
48-
PMA_NAME=proxy-pma
49-
PMA_IMAGE=phpmyadmin/phpmyadmin:latest
50-
51-
# Adminer tool
52-
ADMINER_NAME=proxy-adminer
53-
ADMINER_IMAGE=adminer:latest
54-
55-
# the MailCatcher service
56-
SMTP_NAME=proxy-smtp
57-
58-
59-
############################################################
60-
### Configure databases
61-
###
62-
63-
# MySQL configuration
64-
MYSQL_ROOT_PASSWORD=root
65-
MYSQL_PORT=3306
66-
67-
# PostgreSQL configuration
68-
POSTGRES_USER=root
69-
POSTGRES_PASSWORD=root
70-
POSTGRES_PORT=5432
71-
72-
# Redis configuration
73-
REDIS_PASSWORD=root
74-
REDIS_PORT=6379
75-
76-
77-
############################################################
78-
### Configure database tools
79-
###
80-
81-
# PhpMyAdmin configuration
82-
PMA_ARBITRARY=1
83-
PMA_HOST=proxy-db
84-
PMA_USER=root
85-
PMA_PASSWORD=root
86-
87-
# Adminer configuration
88-
ADMINER_DEFAULT_SERVER=proxy-pg
89-
#ADMINER_PLUGINS="tables-filter tinymce edit-calendar"
90-
#ADMINER_DESIGN=rmsoft
25+
export NETWORK_NAME=proxy-network

.gitignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ tags
1717
/vhost.d/*
1818
!/vhost.d/.gitignore
1919

20-
### certificates
20+
# certificates
2121
/certs/*
2222
!/certs/.gitignore
23+
24+
# spawns
25+
/spawns-available
26+
/spawns-enabled

0 commit comments

Comments
 (0)
0