-
-
Notifications
You must be signed in to change notification settings - Fork 106
/
docker-compose.hobby.yml
97 lines (91 loc) · 2.55 KB
/
docker-compose.hobby.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
90
91
92
93
94
95
96
97
services:
api:
container_name: karrio.api
image: karrio.docker.scarf.sh/karrio/server:$KARRIO_TAG
restart: unless-stopped
ports:
- 5002:5002
depends_on:
- db
- redis
environment:
USE_HTTPS: "True"
DEBUG_MODE: "False"
DETACHED_WORKER: "True"
SECRET_KEY: ${SECRET_KEY}
REDIS_PORT: ${REDIS_PORT:-6379}
REDIS_HOST: ${REDIS_HOST:-redis}
DATABASE_HOST: ${DATABASE_HOST:-db}
DATABASE_NAME: ${DATABASE_NAME:-db}
DATABASE_PORT: ${DATABASE_PORT:-5432}
DATABASE_ENGINE: ${DATABASE_ENGINE:-postgresql_psycopg2}
DATABASE_USERNAME: ${DATABASE_USERNAME:-postgres}
DATABASE_PASSWORD: ${DATABASE_PASSWORD:-postgres}
volumes:
- karrio-static:/karrio/static
worker:
container_name: karrio.worker
image: karrio.docker.scarf.sh/karrio/server:$KARRIO_TAG
restart: unless-stopped
command: '/bin/bash ./worker'
depends_on:
- db
- redis
- api
environment:
DEBUG_MODE: "False"
REDIS_PORT: ${REDIS_PORT:-6379}
REDIS_HOST: ${REDIS_HOST:-redis}
DATABASE_HOST: ${DATABASE_HOST:-db}
DATABASE_NAME: ${DATABASE_NAME:-db}
DATABASE_PORT: ${DATABASE_PORT:-5432}
DATABASE_ENGINE: ${DATABASE_ENGINE:-postgresql_psycopg2}
DATABASE_USERNAME: ${DATABASE_USERNAME:-postgres}
DATABASE_PASSWORD: ${DATABASE_PASSWORD:-postgres}
dashboard:
container_name: karrio.dashboard
image: karrio.docker.scarf.sh/karrio/dashboard:$KARRIO_TAG
ports:
- 3000:3000/tcp
depends_on:
- api
environment:
NEXTAUTH_SECRET: ${JWT_SECRET}
NEXT_PUBLIC_DASHBOARD_URL: ${DASHBOARD_URL}
NEXT_PUBLIC_KARRIO_PUBLIC_URL: ${KARRIO_PUBLIC_URL}
caddy:
container_name: karrio.caddy
image: caddy:2.6.2
restart: unless-stopped
ports:
- '80:80'
- '443:443'
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile
- karrio-static:/var/www/karrio/static
- caddy-data:/data
depends_on:
- api
- dashboard
db:
container_name: karrio.db
image: postgres
restart: unless-stopped
environment:
POSTGRES_DB: ${DATABASE_NAME:-db}
POSTGRES_USER: ${DATABASE_USERNAME:-postgres}
POSTGRES_PASSWORD: ${DATABASE_PASSWORD:-postgres}
PGDATA: /var/lib/postgresql/data/karrio
volumes:
- postgres-data:/var/lib/postgresql/data
redis:
container_name: karrio.redis
image: redis
restart: unless-stopped
volumes:
- redis-data:/data
volumes:
karrio-static:
postgres-data:
redis-data:
caddy-data: