File tree 1 file changed +52
-0
lines changed
1 file changed +52
-0
lines changed Original file line number Diff line number Diff line change
1
+ # DOMAIN=example.com docker stack deploy -c umami.yml umami
2
+
3
+ version : ' 3.8'
4
+
5
+ services :
6
+ umami :
7
+ image : ghcr.io/mikecao/umami:postgresql-latest
8
+ environment :
9
+ - DATABASE_URL=postgresql://umami:myp@ssw0rd@postgres:5432/umami
10
+ - DATABASE_TYPE=postgresql
11
+ - HASH_SALT=${HASH_SALT:-replace-me-with-a-random-string}
12
+ deploy :
13
+ labels :
14
+ - traefik.enable=true
15
+ - traefik.http.routers.umami-${NUMBER:-1}.rule=Host(`${DOMAIN:-umami.localhost}`)
16
+ - traefik.http.routers.umami-${NUMBER:-1}.entrypoints=${SCHEME:-https}
17
+ - traefik.http.routers.umami-${NUMBER:-1}.service=umami-${NUMBER:-1}
18
+ - traefik.http.routers.umami-${NUMBER:-1}.tls.certresolver=letsencrypt
19
+ - traefik.http.services.umami-${NUMBER:-1}.loadbalancer.server.port=3000
20
+ networks :
21
+ - internal
22
+ - traefik
23
+
24
+ postgres :
25
+ image : postgres:12-alpine
26
+ entrypoint : /bin/sh
27
+ command :
28
+ - -c
29
+ - |
30
+ wget -O /docker-entrypoint-initdb.d/schema.postgresql.sql https://raw.githubusercontent.com/mikecao/umami/master/sql/schema.postgresql.sql
31
+ docker-entrypoint.sh postgres
32
+ environment :
33
+ - POSTGRES_DB=umami
34
+ - POSTGRES_USER=umami
35
+ - POSTGRES_PASSWORD=myp@ssw0rd
36
+ healthcheck :
37
+ test : ["CMD", "pg_isready", "-U", "umami"]
38
+ volumes :
39
+ - ${VOLUME_PATH}postgres:/var/lib/postgresql/data
40
+ networks :
41
+ - internal
42
+
43
+ volumes :
44
+ postgres :
45
+
46
+ networks :
47
+ internal :
48
+ driver : overlay
49
+ attachable : true
50
+ traefik :
51
+ external : true
52
+ name : traefik-net
You can’t perform that action at this time.
0 commit comments