-
-
Notifications
You must be signed in to change notification settings - Fork 62
/
nocodb.yml
72 lines (66 loc) · 1.9 KB
/
nocodb.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
version: '3.8'
x-nocodb-labels: &nocodb-labels
labels:
- traefik.enable=true
- traefik.docker.network=nocodb
- traefik.http.routers.nocodb-http.rule=Host(`nocodb.${DOMAIN?Variable DOMAIN not set}`)
- traefik.http.routers.nocodb-http.entrypoints=http
- traefik.http.routers.nocodb-http.service=nocodb
- traefik.http.routers.nocodb-http.middlewares=https-redirect
- traefik.http.routers.nocodb-https.rule=Host(`nocodb.${DOMAIN?Variable DOMAIN not set}`)
- traefik.http.routers.nocodb-https.entrypoints=https
- traefik.http.routers.nocodb-https.tls=true
- traefik.http.routers.nocodb-https.service=nocodb
- traefik.http.routers.nocodb-https.tls.certresolver=le
- traefik.http.services.nocodb.loadbalancer.server.port=8080
x-service: &service
logging:
driver: json-file
options:
max-size: "100m"
max-file: "2"
restart: always
networks:
- nocodb
- database
services:
# https://hub.docker.com/nocodb/nocodb-ce
nocodb:
container_name: nocodb
image: nocodb/nocodb
deploy:
mode: replicated
replicas: 1
resources:
reservations:
cpus: '0.01'
memory: 90M
<<: *nocodb-labels
<<: *nocodb-labels
<<: *service
environment:
NC_DB: pg://postgres:5432?u=nocodb&p=${NOCODB_SQL_PASSWORD?Variable NOCODB_SQL_PASSWORD not set}&d=nocodb
NC_PUBLIC_URL: https://nocodb.${DOMAIN?Variable DOMAIN not set}
NC_DISABLE_TELE: "true"
NC_INVITE_ONLY_SIGNUP: "true"
volumes:
- nocodb-data:/usr/app/data
x-volume: &volume
driver: local
x-volume-driver-opts: &volume-driver-opts
type: none
o: bind
volumes:
nocodb-data:
name: nocodb-data
<<: *volume
driver_opts:
<<: *volume-driver-opts
device: ${DATAPATH?Variable DATAPATH not set}/nocodb/data
networks:
nocodb:
name: nocodb
external: true
database:
name: database
external: true