-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
101 lines (97 loc) · 3.61 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
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
version: "3.6"
# Todo: Build everything in a CI/CD environment
services:
# The caddy server is a lightning fast web server written in Go.
cpmr-caddy:
image: registry.gitlab.com/andersonpem/cpmr-stack/caddy:latest
ports:
- ${CADDY_HTTP_PORT}:80
- ${CADDY_HTTPS_PORT}:443
# - 6001:6001
volumes:
- ./.docker/Caddy/Caddyfile:/etc/caddy/Caddyfile:rw
- ./code:/var/www/html
environment:
REMOTE_PORT: 80
TZ: "America/Sao_Paulo"
CADDY_SERVER_HOST: ${CADDY_SERVER_HOST}
DOCUMENT_ROOT: ${DOCUMENT_ROOT}
cpmr-php-fpm:
image: registry.gitlab.com/andersonpem/cpmr-stack/php-fpm:latest
restart: always
# ports:
# - 9000:9000
volumes:
- ./code:/var/www/html
environment:
# General settings
#Ext enable
PHP_EXTENSIONS: ${PHP_EXTENSIONS}
TZ: ${TZ}
TEMPLATE_PHP_INI: ${TEMPLATE_PHP_INI}
#PHP.ini settings
PHP_INI_UPLOAD_MAX_FILESIZE: ${PHP_INI_UPLOAD_MAX_FILESIZE}
PHP_INI_POST_MAX_SIZE: ${PHP_INI_POST_MAX_SIZE}
PHP_INI_MAX_EXECUTION_TIME: ${PHP_INI_MAX_EXECUTION_TIME}
PHP_INI_MEMORY_LIMIT: ${PHP_INI_MEMORY_LIMIT}
PHP_INI_DATE__TIMEZONE: ${TZ}
APACHE_DOCUMENT_ROOT: ${DOCUMENT_ROOT}
# Debug only
PHP_EXTENSION_XDEBUG: ${PHP_EXTENSION_XDEBUG}
PHP_INI_XDEBUG__MODE: ${XDEBUG_MODE}
PHP_INI_XDEBUG__CLIENT_PORT: ${XDEBUG_CLIENT_PORT}
PHP_INI_XDEBUG__START_WITH_REQUEST: ${XDEBUG_START_WITH_REQUEST}
PHP_INI_XDEBUG__DISCOVER_CLIENT_HOST: ${XDEBUG_DISCOVER_CLIENT_HOST}
PHP_INI_XDEBUG__CLIENT_HOST: ${XDEBUG_CLIENT_HOST}
PHP_INI_XDEBUG__IDEKEY: ${XDEBUG_IDEKEY}
PHP_INI_XDEBUG__EXTENDED_INFO: ${XDEBUG_EXTENDED_INFO}
# PHP_INI_XDEBUG__REMOTE_LOG: "xdebug.log"
PHP_INI_ERROR_REPORTING: ${PHP_INI_ERROR_REPORTING}
#Production Settings
# TEMPLATE_PHP_INI: production
DOCKER_USER: ${DOCKER_USER}
APACHE_RUN_USER: ${APACHE_RUN_USER}
APACHE_RUN_GROUP: ${APACHE_RUN_GROUP}
PHP_IDE_CONFIG: ${PHP_IDE_CONFIG}
extra_hosts:
- "host.docker.internal:host-gateway"
cpmr-mysql:
image: mysql:8
restart: unless-stopped
ports:
- ${MYSQL_PORT}:3306
volumes:
- ./data/mysql:/var/lib/mysql:delegated
- ./.docker/Mysql/my.cnf:/etc/mysql/my.cnf
environment:
- MYSQL_DATABASE=${MYSQL_DATABASE}
- MYSQL_USER=${MYSQL_USER}
- MYSQL_PASSWORD=$MYSQL_PASSWORD
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
- ${TZ}
command: ['mysqld', '--character-set-server=utf8mb4', '--collation-server=utf8mb4_unicode_ci']
cpmr-redis:
# image: registry.gitlab.com/andersonpem/cpmr-stack/redis:0.1.0
build:
context: .
dockerfile: ./.docker/Redis/Dockerfile
volumes:
- ./data/redis:/data
- ./.docker/Redis/redis.conf:/etc/redis/redis.conf
ports:
- "${REDIS_PORT}:6379"
secrets:
- redis_secret
cpmr-adminer:
image: adminer
ports:
- ${ADMINER_PORT}:8080
# redisinsight:
# image: redislabs/redisinsight
# # volumes:
# # - ./data/redisinsight:/db
# ports:
# - 8001:8001
secrets:
redis_secret:
file: ./redis-secret.txt