-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
89 lines (89 loc) · 2.33 KB
/
docker-compose.yml
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
version: "3.8"
services:
app:
image: ghcr.io/okkema/grow.app:development
container_name: okkema.grow.app
build: app
ports:
- "80:80"
- "443:443"
volumes:
- /home/pi/certbot/conf:/etc/letsencrypt
depends_on:
api:
condition: service_started
certbot:
condition: service_completed_successfully
api:
image: ghcr.io/okkema/grow.api:development
container_name: okkema.grow.api
build:
context: server
target: api
environment:
REDIS_HOSTNAME: redis
SQL_HOSTNAME: sql
MQTT_HOSTNAME: mqtt
depends_on:
migrations:
condition: service_completed_successfully
mqtt:
condition: service_started
redis:
condition: service_started
worker:
image: ghcr.io/okkema/grow.worker:development
container_name: okkema.grow.worker
build:
context: server
target: worker
environment:
REDIS_HOSTNAME: redis
SQL_HOSTNAME: sql
MQTT_HOSTNAME: mqtt
depends_on:
migrations:
condition: service_completed_successfully
mqtt:
condition: service_started
redis:
condition: service_started
migrations:
image: ghcr.io/okkema/grow.migrations:development
container_name: okkema.grow.migrations
build:
context: server
target: migrations
environment:
SQL_HOSTNAME: sql
depends_on:
sql:
condition: service_started
mqtt:
image: eclipse-mosquitto:2.0.14
container_name: okkema.grow.mosquitto
command: mosquitto -c /mosquitto-no-auth.conf
ports:
- "1883:1883"
- "9001:9001"
redis:
image: redis:6.2-alpine
container_name: okkema.grow.redis
ports:
- "6379:6379"
sql:
image: mariadb:10.8.3
container_name: okkema.grow.mariadb
environment:
MARIADB_DATABASE: grow
MARIADB_ROOT_PASSWORD: password
ports:
- "3306:3306"
certbot:
image: certbot/dns-cloudflare:arm64v8-v1.25.0
container_name: okkema.grow.certbot
volumes:
- /home/pi/certbot/conf:/etc/letsencrypt
- /home/pi/certbot/logs:/var/log/letsencrypt
- /home/pi/certbot/cloudflare.ini:/cloudflare.ini
command: certonly --dns-cloudflare --dns-cloudflare-credentials /cloudflare.ini --force-renewal --email ben@okkema.org -d grow.okkema.org --agree-tos