-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yml.example
155 lines (155 loc) · 4.98 KB
/
docker-compose.yml.example
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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
version: "3.6"
networks:
{{DEV_NAMESPACE}}:
name: {{DEV_NAMESPACE}}_default
services:
nginx_main:
image: nginx:${NGINX_VERSION}-alpine
container_name: {{DEV_NAMESPACE}}_nginx_main
volumes:
- "./shared:/shared"
- "./etc/nginx:/etc/nginx/conf.d"
- "./etc/ssl:/etc/ssl"
- "${WWW_DIR}:/var/www/html"
- "${NGINX_LOG_DIR}:/var/log/nginx"
ports:
- "${NGINX_HTTP_EXPOSING_PORT}:80"
- "${NGINX_HTTPS_EXPOSING_PORT}:443"
environment:
NGINX_HOST:
networks:
- {{DEV_NAMESPACE}}
php72_fpm:
image: manhphucofficial/php:7.2-fpm
container_name: {{DEV_NAMESPACE}}_php72_fpm
volumes:
- "./shared:/shared"
- "${WWW_DIR}:/var/www/html"
- "./etc/php72/php-custom.ini:/etc/php/7.2/fpm/conf.d/php-custom.ini"
environment:
- PHP_UPLOAD_MAX_FILEZISE=256M
- PHP_POST_MAX_SIZE=256M
- PHP_MEMORY_LIMIT=128M
- PHP_MAX_EXECUTION_TIME=120
- PHP_MAX_INPUT_TIME=90
networks:
- {{DEV_NAMESPACE}}
# php72_cli:
# image: manhphucofficial/php:7.2-cli
# container_name: {{DEV_NAMESPACE}}_php72_cli
php_latest_fpm:
image: manhphucofficial/php:latest-fpm
container_name: {{DEV_NAMESPACE}}_php_latest_fpm
volumes:
- "./shared:/shared"
- "${WWW_DIR}:/var/www/html"
- "./etc/php-latest/php-custom.ini:/etc/php/7.4/fpm/conf.d/php-custom.ini"
environment:
- PHP_UPLOAD_MAX_FILEZISE=256M
- PHP_POST_MAX_SIZE=256M
- PHP_MEMORY_LIMIT=128M
- PHP_MAX_EXECUTION_TIME=120
- PHP_MAX_INPUT_TIME=90
networks:
- {{DEV_NAMESPACE}}
# php_latest_cli:
# image: manhphucofficial/php:latest-cli
# container_name: {{DEV_NAMESPACE}}_php_latest_cli
mariadb:
image: mariadb
environment:
- MYSQL_DATABASE=${MYSQL_DATABASE}
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
- MYSQL_USER=${MYSQL_USER}
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
volumes:
# - ./mariadb-init:/docker-entrypoint-initdb.d # Place init .sql file(s) here.
# - /path/to/mariadb/data/on/host:/var/lib/mysql # I want to manage volumes manually.
- type: volume
source: mariadb-data
target: /var/lib/mysql
networks:
- {{DEV_NAMESPACE}}
adminer:
image: adminer:4.7.7
volumes:
- "./etc/adminer/0-upload_large_dumps.ini:/usr/local/etc/php/conf.d/0-upload_large_dumps.ini"
ports:
- ${ADMINIER_WEB_EXPOSING_PORT}:8080
environment:
ADMINER_DESIGN: 'nette'
# # For PostgreSQL:
# ADMINER_DEFAULT_DB_DRIVER: pgsql
# ADMINER_DEFAULT_DB_HOST: $DB_HOST
# ADMINER_DEFAULT_DB_NAME: $DB_NAME
networks:
- {{DEV_NAMESPACE}}
phpmyadmin:
image: phpmyadmin/phpmyadmin
ports:
- "${PHPMYADMIN_WEB_EXPOSING_PORT}:80"
environment:
- PMA_ARBITRARY=1
- PHP_UPLOAD_MAX_FILESIZE=1G
- PHP_POST_MAX_SIZE=1G
- PHP_MEMORY_LIMIT=0
- PHPMYADMIN_ALLOW_ARBITRARY_SERVER=yes
- PHP_MAX_INPUT_VARS=1G
- UPLOAD_LIMIT=1G
networks:
- {{DEV_NAMESPACE}}
ssdb:
image: benyoo/ssdb
volumes:
- "./etc/ssdb/ssdb.conf:/etc/ssdb.conf"
networks:
- {{DEV_NAMESPACE}}
phpssdbadmin:
build:
context: "./build/phpssdbadmin"
ports:
- "${PHPSSDBADMIN_WEB_EXPOSING_PORT}:80"
networks:
- {{DEV_NAMESPACE}}
redis:
image: redis
ports:
- "${REDIS_EXPOSING_PORT}:6379"
volumes:
- "./etc/redis/redis.conf:/usr/local/etc/redis/redis.conf"
networks:
- {{DEV_NAMESPACE}}
phpredisadmin:
image: erikdubbelboer/phpredisadmin
ports:
- "${PHPREDISADMIN_WEB_EXPOSING_PORT}:80"
links:
- redis
environment:
- ADMIN_USER=${REDIS_ADMIN_USER}
- ADMIN_PASS=${REDIS_ADMIN_PASS}
- REDIS_1_HOST=redis
- REDIS_1_PORT=6379
networks:
- {{DEV_NAMESPACE}}
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.7.0
environment:
- discovery.type=single-node
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- es-data:/usr/share/elasticsearch/data
ports:
- 9200:9200
networks:
- {{DEV_NAMESPACE}}
volumes:
mariadb-data:
driver: local
es-data:
driver: local