Archived
97 lines
1.9 KiB
YAML
97 lines
1.9 KiB
YAML
version: '3.8'
|
|
|
|
services:
|
|
loki:
|
|
image: grafana/loki:3.0.0
|
|
container_name: loki
|
|
ports:
|
|
- "3100:3100"
|
|
command: -config.file=/etc/loki/local-config.yaml
|
|
restart: unless-stopped
|
|
|
|
grafana:
|
|
image: grafana/grafana:10.4.0
|
|
container_name: grafana
|
|
ports:
|
|
- "3000:3000"
|
|
environment:
|
|
- GF_SECURITY_ADMIN_USER=admin
|
|
- GF_SECURITY_ADMIN_PASSWORD=ocfsecure
|
|
depends_on:
|
|
- loki
|
|
restart: unless-stopped
|
|
|
|
alloy:
|
|
image: grafana/alloy:latest
|
|
container_name: alloy
|
|
volumes:
|
|
- ./alloy-config.yml:/etc/alloy/config.alloy
|
|
- ./logs:/var/log/scanner
|
|
ports:
|
|
- "12345:12345" # optional web UI/debug
|
|
command: run /etc/alloy/config.alloy
|
|
environment:
|
|
- ALLOY_ENABLE_WEB=true
|
|
depends_on:
|
|
- loki
|
|
restart: unless-stopped
|
|
|
|
apache:
|
|
build:
|
|
context: ./apache
|
|
ports:
|
|
- "8080:80"
|
|
networks:
|
|
- shared_net
|
|
- default
|
|
volumes:
|
|
- userdata:/home
|
|
depends_on:
|
|
- userdata
|
|
container_name: apache-static
|
|
restart: unless-stopped
|
|
|
|
userdata:
|
|
image: busybox
|
|
volumes:
|
|
- userdata:/home
|
|
container_name: user_data
|
|
command: /bin/true
|
|
|
|
db:
|
|
image: mariadb:11
|
|
container_name: wp_db
|
|
environment:
|
|
MYSQL_ROOT_PASSWORD: rootpass
|
|
MYSQL_DATABASE: wp_db
|
|
MYSQL_USER: wp_user
|
|
MYSQL_PASSWORD: wp_pass
|
|
volumes:
|
|
- db_data:/var/lib/mysql
|
|
restart: unless-stopped
|
|
|
|
wordpress:
|
|
image: wordpress:latest
|
|
container_name: wp_site
|
|
depends_on:
|
|
- db
|
|
environment:
|
|
WORDPRESS_DB_HOST: db:3306
|
|
WORDPRESS_DB_USER: wp_user
|
|
WORDPRESS_DB_PASSWORD: wp_pass
|
|
WORDPRESS_DB_NAME: wp_db
|
|
ports:
|
|
- "8081:80" # WordPress site -> http://localhost:8081
|
|
volumes:
|
|
- wp_data:/var/www/html
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
userdata:
|
|
db_data:
|
|
wp_data:
|
|
|
|
networks:
|
|
shared_net:
|
|
external: true
|