-
-
Notifications
You must be signed in to change notification settings - Fork 143
/
nocobase.yml
53 lines (49 loc) · 1.53 KB
/
nocobase.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
# DOMAIN=example.com docker stack deploy -c nocobase.yml nocobase
services:
web:
image: nocobase/nocobase:${VERSION:-1.4.11}
environment:
- APP_ENV=production
- INIT_ROOT_EMAIL=${ADMIN_EMAIL:[email protected]}
- INIT_ROOT_PASSWORD=${ADMIN_PASSWORD:-myp@ssw0rd}
- INIT_ROOT_NICKNAME=${ADMIN_NICKNAME:-Admin}
- DB_DIALECT=postgres
- DB_HOST=postgres
- DB_DATABASE=nocobase
- DB_USER=nocobase
- DB_PASSWORD=myp@ssw0rd
volumes:
- ${VOLUME_PATH}storage:/app/nocobase/storage
deploy:
labels:
- traefik.enable=true
- traefik.http.routers.nocobase-${NUMBER:-1}.rule=Host(`${DOMAIN:-nocobase.localhost}`)
- traefik.http.routers.nocobase-${NUMBER:-1}.entrypoints=${SCHEME:-https}
- traefik.http.routers.nocobase-${NUMBER:-1}.service=nocobase-${NUMBER:-1}
- traefik.http.routers.nocobase-${NUMBER:-1}.tls.certresolver=letsencrypt
- traefik.http.services.nocobase-${NUMBER:-1}.loadbalancer.server.port=80
networks:
- internal
- traefik
postgres:
image: postgres:${POSTGRES_VERSION:-12-alpine}
environment:
- POSTGRES_DB=nocobase
- POSTGRES_USER=nocobase
- POSTGRES_PASSWORD=myp@ssw0rd
healthcheck:
test: ["CMD", "pg_isready", "-U", "nocobase"]
volumes:
- ${VOLUME_PATH}postgres:/var/lib/postgresql/data
networks:
- internal
volumes:
postgres:
storage:
networks:
internal:
driver: overlay
attachable: true
traefik:
external: true
name: traefik-net