diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..01fadd6 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,82 @@ +--- +version: '3.1' +services: + soketi: + image: 'quay.io/soketi/soketi:latest-16-alpine' + environment: + SOKETI_DEBUG: '1' + SOKETI_METRICS_SERVER_PORT: '9601' + SOKETI_DEFAULT_APP_ID: 'Avipaidaecachai6Thai' + SOKETI_DEFAULT_APP_KEY: 'EiquuV7uy3aiReith0te' + SOKETI_DEFAULT_APP_SECRET: 'veeyohHaef2ieShohj4j' + SOKETI_DEFAULT_APP_ENABLE_CLIENT_MESSAGES: 'true' + SOKETI_DEFAULT_APP_USER_AUTHENTICATION: 'true' + ports: + - '${SOKETI_PORT:-6001}:6001' + - '${SOKETI_METRICS_SERVER_PORT:-9601}:9601' + networks: + ns-eatvio: + ipv4_address: 172.118.0.5 + labels: + - "traefik.enable=false" + restart: always + + mysql: + image: 'mysql:8.0' + working_dir: /application + networks: + ns-eatvio: + ipv4_address: 172.118.0.3 + volumes: + - '.:/application' + - './mysql_data:/var/lib/mysql' + environment: + - MYSQL_ROOT_PASSWORD=nhbnhb22 + - MYSQL_DATABASE=eatvio + - MYSQL_USER=eatvio_user + - MYSQL_PASSWORD=eatvio_pass_nhbnhb22 + ports: + - '1094:3306' + labels: + - "traefik.enable=false" + restart: always + + php-fpm: + build: phpdocker/php-fpm + working_dir: /application + networks: + ns-eatvio: + ipv4_address: 172.118.0.2 + volumes: + - './app:/application' + - './phpdocker/php-fpm/php-ini-overrides.ini:/etc/php/8.2/fpm/conf.d/99-overrides.ini' + labels: + - "traefik.enable=false" + restart: always + webserver: + image: 'nginx:alpine' + working_dir: /application + restart: always + volumes: + - './app:/application' + - './phpdocker/nginx/nginx.conf:/etc/nginx/conf.d/default.conf' + ports: + - '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" + +networks: + web: + external: true + ns-eatvio: + external: false + ipam: + config: + - subnet: 172.118.0.0/28