version: '2.4' services: db: image: registry.sindominio.net/mariadb user: "$USER_GROUP" restart: always volumes: - ./db:/var/lib/mysql environment: - MYSQL_RANDOM_ROOT_PASSWORD=1 - MYSQL_DATABASE - MYSQL_USER - MYSQL_PASSWORD wordpress: image: registry.sindominio.net/wordpress user: "$USER_GROUP" restart: always depends_on: - db volumes: - ./uploads:/app/wp-content/uploads ports: - 8080:8080 environment: - MYSQL_HOST=db - MYSQL_DATABASE - MYSQL_USER - MYSQL_PASSWORD - WP_USER - WP_PASS - WP_EMAIL - WP_TITLE - WP_URL