fix on docker

This commit is contained in:
ludo
2024-02-05 21:34:29 +01:00
parent 9e30118088
commit 54ab6b0231
2 changed files with 381 additions and 359 deletions

View File

@@ -18,7 +18,7 @@ volumes:
driver: ${VOLUMES_DRIVER}
services:
### Workspace Utilities ##################################
### Workspace Utilities ##################################
workspace:
restart: always
build:
@@ -39,7 +39,7 @@ services:
extra_hosts:
- "dockerhost:${DOCKER_HOST_IP}"
ports:
- "127.0.0.1:${WORKSPACE_SSH_PORT}:22"
- "${WORKSPACE_SSH_PORT}:22"
tty: true
environment:
- PHP_IDE_CONFIG=${PHP_IDE_CONFIG}
@@ -53,7 +53,7 @@ services:
links:
- docker-in-docker
### PHP-FPM ##############################################
### PHP-FPM ##############################################
php-fpm:
restart: always
build:
@@ -106,7 +106,7 @@ services:
- ./php-fpm/php${PHP_VERSION}.ini:/usr/local/etc/php/php.ini
- ${APP_CODE_PATH_HOST}:${APP_CODE_PATH_CONTAINER}${APP_CODE_CONTAINER_FLAG}
ports:
- "127.0.0.1:${PHP_FPM_XDEBUG_PORT}:9003"
- "${PHP_FPM_XDEBUG_PORT}:9003"
expose:
- "9000"
extra_hosts:
@@ -125,7 +125,7 @@ services:
links:
- docker-in-docker
### PHP Worker ############################################
### PHP Worker ############################################
php-worker:
restart: always
build:
@@ -158,7 +158,7 @@ services:
networks:
- backend
### NGINX Server #########################################
### NGINX Server #########################################
nginx:
restart: always
build:
@@ -179,7 +179,7 @@ services:
- ${NGINX_SITES_PATH}:/etc/nginx/sites-available
- ${NGINX_SSL_PATH}:/etc/nginx/ssl
ports:
- "${NGINX_HOST_HTTP_PORT}:80"
- "127.0.0.1:${NGINX_HOST_HTTP_PORT}:80"
depends_on:
- php-fpm
networks:
@@ -191,7 +191,7 @@ services:
- traefik.frontend.rule=Host:opensem.docker.localhost
- traefik.http.routers.nginx.rule=Host(`opensem.docker.localhost`)
### MySQL ################################################
### MySQL ################################################
mysql:
restart: always
build:
@@ -208,11 +208,11 @@ services:
- ${DATA_PATH_HOST}/mysql:/var/lib/mysql
- ${MYSQL_ENTRYPOINT_INITDB}:/docker-entrypoint-initdb.d
ports:
- "127.0.0.1:${MYSQL_PORT}:3306"
- "${MYSQL_PORT}:3306"
networks:
- backend
### MySQL ################################################
### MySQL ################################################
mysql-slave1:
build:
context: ./mysql-slave1
@@ -232,7 +232,7 @@ services:
networks:
- backend
### Redis ################################################
### Redis ################################################
redis:
restart: always
build: ./redis
@@ -240,11 +240,11 @@ services:
- ${DATA_PATH_HOST}/redis:/data
command: redis-server --requirepass ${REDIS_PASSWORD}
ports:
- "127.0.0.1:${REDIS_PORT}:6379"
- "${REDIS_PORT}:6379"
networks:
- backend
### SMTP ################################################
### SMTP ################################################
smtp:
restart: always
build: ./smtp
@@ -255,7 +255,7 @@ services:
- backend
tty: true
### phpMyAdmin ###########################################
### phpMyAdmin ###########################################
phpmyadmin:
build: ./phpmyadmin
environment:
@@ -267,14 +267,14 @@ services:
- MEMORY_LIMIT=${PMA_MEMORY_LIMIT}
- UPLOAD_LIMIT=${PMA_UPLOAD_LIMIT}
ports:
- "127.0.0.1:${PMA_PORT}:80"
- "${PMA_PORT}:80"
depends_on:
- "${PMA_DB_ENGINE}"
networks:
- frontend
- backend
### Certbot #########################################
### Certbot #########################################
certbot:
build:
context: ./certbot
@@ -287,7 +287,7 @@ services:
networks:
- frontend
### Docker-in-Docker ################################################
### Docker-in-Docker ################################################
docker-in-docker:
image: docker:19.03-dind
environment:
@@ -301,13 +301,13 @@ services:
networks:
- backend
### Soketi ###########################################
### Soketi ###########################################
soketi:
restart: unless-stopped
image: 'quay.io/soketi/soketi:1.0-16-debian'
ports:
- '127.0.0.1:${SOKETI_PORT:-6001}:6001'
- '127.0.0.1:${SOKETI_METRICS_SERVER_PORT:-9601}:9601'
- '${SOKETI_PORT:-6001}:6001'
- '${SOKETI_METRICS_SERVER_PORT:-9601}:9601'
environment:
- SOKETI_DEBUG=1
- SOKETI_DEFAULT_APP_ID=${PUSHER_APP_ID}
@@ -323,7 +323,7 @@ services:
links:
- docker-in-docker
### Laravel Horizon ############################################
### Laravel Horizon ############################################
laravel-horizon:
build:
context: ./laravel-horizon
@@ -360,9 +360,8 @@ services:
networks:
- backend
### Meilisearch
### Meilisearch
meilisearch:
container_name: meilisearch
image: getmeili/meilisearch:latest
environment:
- http_proxy
@@ -373,11 +372,9 @@ services:
# - MEILI_LOG_LEVEL
# - MEILI_DB_PATH=${MEILI_DB_PATH:-/data.ms}
ports:
- 127.0.0.1:${MEILI_PORT:-7700}:7700
- ${MEILI_PORT:-7700}:7700
networks:
- backend
volumes:
- ${DATA_PATH_HOST}/meili_data:/meili_data
restart: unless-stopped

View File

@@ -0,0 +1,25 @@
version: '3'
services:
meilisearch:
container_name: meilisearch
image: getmeili/meilisearch:v0.25.2
environment:
- http_proxy
- https_proxy
- MEILI_MASTER_KEY=${MEILI_MASTER_KEY:-masterKey}
- MEILI_NO_ANALYTICS=${MEILI_NO_ANALYTICS:-true}
- MEILI_ENV=${MEILI_ENV:-development}
- MEILI_LOG_LEVEL
- MEILI_DB_PATH=${MEILI_DB_PATH:-/data.ms}
ports:
- ${MEILI_PORT:-7700}:7700
networks:
- meilisearch
volumes:
- ./data.ms:/data.ms
restart: unless-stopped
networks:
meilisearch:
driver: bridge