Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing internal network on apache example compose file #334

Open
BraianPita opened this issue Sep 14, 2023 · 0 comments
Open

Missing internal network on apache example compose file #334

BraianPita opened this issue Sep 14, 2023 · 0 comments

Comments

@BraianPita
Copy link

The current docker-compose.yml inside the .example/apache folder is missing an internal network to allow the app service to connect to the db service.

This is my current working docker-compose file:

version: "3"

services:
  db:
    image: mariadb:10.11
    command: --max-allowed-packet=64MB
    restart: always
    volumes:
      - db:/var/lib/mysql:Z
    env_file:
      - ./db.env
    networks:
      - matomo-network

  app:
    container_name: matomo
    image: matomo
    restart: always
    volumes:
#     - ./config:/var/www/html/config:z
#     - ./logs:/var/www/html/logs:z
      - matomo:/var/www/html:z
    environment:
      - MATOMO_DATABASE_HOST=db
    env_file:
      - ./db.env
    expose:
      - 80
    networks:
      - matomo-network
      - reverse-proxy-network

volumes:
  db:
  matomo:

networks:
  matomo-network:
  reverse-proxy-network:
    external: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant