-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yaml
62 lines (57 loc) · 1.53 KB
/
compose.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: screw
services:
api:
image: ghcr.io/mateopresacastro/screw/api:latest
platform: linux/amd64
environment:
- ENV=prod
- IR_PATH=/app/audio/ir.wav
env_file:
- /home/ec2-user/app/api/.env
volumes:
- data:/app/data
restart: always
nextjs:
image: ghcr.io/mateopresacastro/screw/nextjs:latest
platform: linux/amd64
restart: always
proxy:
image: ghcr.io/mateopresacastro/screw/proxy:latest
platform: linux/amd64
ports:
- "80:80"
- "443:443"
volumes:
- /home/ec2-user/app/data/certbot/conf:/etc/letsencrypt:ro
- /home/ec2-user/app/data/certbot/www:/var/www/certbot
restart: always
depends_on:
- api
- nextjs
certbot:
image: certbot/certbot
volumes:
- /home/ec2-user/app/data/certbot/conf:/etc/letsencrypt
- /home/ec2-user/app/data/certbot/www:/var/www/certbot
entrypoint: "/bin/sh -c 'trap exit TERM; while :; do certbot renew; sleep 12h & wait $${!}; done;'"
prometheus:
image: prom/prometheus:latest
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml
restart: always
grafana:
image: grafana/grafana:latest
environment:
- GF_SERVER_ROOT_URL=https://screw.mateo.id/grafana
- GF_SERVER_SERVE_FROM_SUB_PATH=true
- GF_AUTH_ANONYMOUS_ENABLED=true
- GF_AUTH_ANONYMOUS_ORG_ROLE=Viewer
- GF_AUTH_BASIC_ENABLED=false
volumes:
- grafana_data:/var/lib/grafana
volumes:
data:
prometheus_data:
driver: local
grafana_data:
driver: local