forked from eatvio/eatvio-infra
ci(config): update
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
---
|
||||
version: "3.1"
|
||||
services:
|
||||
soketi:
|
||||
image: "quay.io/soketi/soketi:latest-16-alpine"
|
||||
@@ -20,6 +18,12 @@ services:
|
||||
- "traefik.enable=false"
|
||||
restart: always
|
||||
|
||||
memcached:
|
||||
image: "memcached:alpine"
|
||||
networks:
|
||||
- ns-eatvio
|
||||
restart: always
|
||||
|
||||
mysql:
|
||||
image: "mysql:8.0"
|
||||
working_dir: /application
|
||||
@@ -46,31 +50,34 @@ services:
|
||||
- TZ=Europe/Moscow
|
||||
depends_on:
|
||||
- mysql
|
||||
- worker
|
||||
# - frontend
|
||||
- memcached
|
||||
- typesense
|
||||
networks:
|
||||
- ns-eatvio
|
||||
volumes:
|
||||
- "./app:/application"
|
||||
- "./phpdocker/php-fpm/php-ini-overrides.ini:/etc/php/8.2/fpm/conf.d/99-overrides.ini"
|
||||
- "./phpdocker/php-fpm/php-ini-overrides.ini:/etc/php/8.4/fpm/conf.d/99-overrides.ini"
|
||||
- "./tbank_certs:/tbank_certs"
|
||||
# - "./eatvio-3467b-firebase-adminsdk-fbsvc-6e149b2a5a.json:/eatvio-3467b-firebase-adminsdk-fbsvc-6e149b2a5a.json"
|
||||
labels:
|
||||
- "traefik.enable=false"
|
||||
restart: always
|
||||
|
||||
frontend:
|
||||
build: phpdocker/front-end
|
||||
command: "npm run watch"
|
||||
working_dir: /application
|
||||
environment:
|
||||
- TZ=Europe/Moscow
|
||||
depends_on:
|
||||
- mysql
|
||||
- php-fpm
|
||||
networks:
|
||||
- ns-eatvio
|
||||
volumes:
|
||||
- "./app:/application"
|
||||
labels:
|
||||
- "traefik.enable=false"
|
||||
restart: always
|
||||
# frontend:
|
||||
# build: phpdocker/front-end
|
||||
# command: "npm run dev"
|
||||
# working_dir: /application
|
||||
# environment:
|
||||
# - TZ=Europe/Moscow
|
||||
# networks:
|
||||
# - ns-eatvio
|
||||
# volumes:
|
||||
# - "./app:/application"
|
||||
# labels:
|
||||
# - "traefik.enable=false"
|
||||
# restart: unless-stopped
|
||||
|
||||
worker:
|
||||
build: phpdocker/worker
|
||||
@@ -80,13 +87,14 @@ services:
|
||||
command: "service supervisor start"
|
||||
depends_on:
|
||||
- mysql
|
||||
- php-fpm
|
||||
networks:
|
||||
- ns-eatvio
|
||||
volumes:
|
||||
- "./app:/application"
|
||||
- "./phpdocker/worker/php-ini-overrides.ini:/etc/php/8.2/fpm/conf.d/99-overrides.ini"
|
||||
- "./phpdocker/worker/php-ini-overrides.ini:/etc/php/8.4/fpm/conf.d/99-overrides.ini"
|
||||
- "./phpdocker/worker/laravel-worker.conf:/etc/supervisor/conf.d/laravel-worker.conf"
|
||||
- "./tbank_certs:/tbank_certs"
|
||||
# - "./eatvio-3467b-firebase-adminsdk-fbsvc-6e149b2a5a.json:/eatvio-3467b-firebase-adminsdk-fbsvc-6e149b2a5a.json"
|
||||
labels:
|
||||
- "traefik.enable=false"
|
||||
restart: always
|
||||
@@ -101,16 +109,18 @@ services:
|
||||
volumes:
|
||||
- "./app:/application"
|
||||
- "./phpdocker/nginx/nginx.conf:/etc/nginx/conf.d/default.conf"
|
||||
- "./phpdocker/nginx/alex.eatvio.local+4.pem:/etc/nginx/alex.eatvio.local+4.pem"
|
||||
- "./phpdocker/nginx/alex.eatvio.local+4-key.pem:/etc/nginx/alex.eatvio.local+4-key.pem"
|
||||
- "./phpdocker/nginx/socket.alex.eatvio.local+4.pem:/etc/nginx/socket.alex.eatvio.local+4.pem"
|
||||
- "./phpdocker/nginx/socket.alex.eatvio.local+4-key.pem:/etc/nginx/socket.alex.eatvio.local+4-key.pem"
|
||||
ports:
|
||||
- "1092:80"
|
||||
- "10443:5000"
|
||||
- "1092:80"
|
||||
networks:
|
||||
- web
|
||||
- ns-eatvio
|
||||
labels:
|
||||
- "traefik.docker.network=web"
|
||||
- "traefik.enable=true"
|
||||
- "traefik.frontend.rule=Host:dev2.eatvio.com,socket.eatvio.com"
|
||||
- "traefik.port=80"
|
||||
- "traefik.protocol=http"
|
||||
|
||||
mailhog:
|
||||
image: "mailhog/mailhog"
|
||||
@@ -120,15 +130,17 @@ services:
|
||||
- ns-eatvio
|
||||
|
||||
typesense:
|
||||
image: typesense/typesense:26.0
|
||||
restart: on-failure
|
||||
expose:
|
||||
- 8108
|
||||
ports:
|
||||
- 8108:8108
|
||||
image: typesense/typesense:29.0
|
||||
restart: always
|
||||
healthcheck:
|
||||
test:
|
||||
- CMD
|
||||
- wget
|
||||
- "--no-verbose"
|
||||
- "--spider"
|
||||
- "http://localhost:8108/health"
|
||||
networks:
|
||||
- ns-eatvio
|
||||
- web
|
||||
volumes:
|
||||
- ./typesense-data:/data
|
||||
command: "--data-dir /data --api-key=typesense --enable-cors"
|
||||
@@ -138,6 +150,3 @@ networks:
|
||||
external: true
|
||||
ns-eatvio:
|
||||
external: false
|
||||
ipam:
|
||||
config:
|
||||
- subnet: 172.118.0.0/28
|
||||
|
||||
Reference in New Issue
Block a user