repos / ops

infra for pico services
git clone https://github.com/picosh/ops.git

ops / monitoring
Antonio Mika · 17 Nov 23

docker-compose.prod.yml

 1version: '3.8'
 2
 3services:
 4  caddy:
 5    env_file:
 6      - .env.prod
 7    volumes:
 8      - ./caddy/data:/data
 9      - ./caddy/config:/config
10    ports:
11      - "80:80"
12      - "443:443"
13  prometheus:
14    networks:
15      - default
16      - caddy
17    env_file:
18      - .env.prod
19    volumes:
20      - ./prometheus/data:/prometheus
21  grafana:
22    networks:
23      - default
24      - caddy
25    env_file:
26      - .env.prod
27    volumes:
28      - ./grafana/data:/var/lib/grafana
29  blackbox_exporter:
30    networks:
31      - default
32      - ip6net
33    env_file:
34      - .env.prod
35
36networks:
37  ip6net:
38    enable_ipv6: true
39    ipam:
40      driver: default
41      config:
42        - subnet: fd00:dead:beef::/48
43  caddy:
44    name: pico_pgs
45    external: true