|
|
@ -9,9 +9,11 @@ volumes: |
|
|
|
name: traefik-letsencrypt |
|
|
|
name: traefik-letsencrypt |
|
|
|
nocodb-db: |
|
|
|
nocodb-db: |
|
|
|
name: nocodb-db |
|
|
|
name: nocodb-db |
|
|
|
|
|
|
|
nocodb-data: |
|
|
|
|
|
|
|
name: nocodb-data |
|
|
|
|
|
|
|
|
|
|
|
services: |
|
|
|
services: |
|
|
|
|
|
|
|
|
|
|
|
traefik: |
|
|
|
traefik: |
|
|
|
image: traefik:v2.2 |
|
|
|
image: traefik:v2.2 |
|
|
|
container_name: traefik |
|
|
|
container_name: traefik |
|
|
@ -19,18 +21,18 @@ services: |
|
|
|
command: |
|
|
|
command: |
|
|
|
#- "--log.level=DEBUG" |
|
|
|
#- "--log.level=DEBUG" |
|
|
|
- "--providers.docker=true" |
|
|
|
- "--providers.docker=true" |
|
|
|
- "--ping=true" |
|
|
|
- "--ping=true" |
|
|
|
- "--ping.entryPoint=ping" |
|
|
|
- "--ping.entryPoint=ping" |
|
|
|
- "--providers.docker.exposedbydefault=false" |
|
|
|
- "--providers.docker.exposedbydefault=false" |
|
|
|
- "--providers.docker.network=traefik_proxy" |
|
|
|
- "--providers.docker.network=traefik_proxy" |
|
|
|
- "--entryPoints.ping.address=:8081" |
|
|
|
- "--entryPoints.ping.address=:8081" |
|
|
|
- "--entrypoints.http.address=:80" |
|
|
|
- "--entrypoints.http.address=:80" |
|
|
|
- "--entrypoints.https.address=:443" |
|
|
|
- "--entrypoints.https.address=:443" |
|
|
|
- "--entrypoints.https.http.tls.certresolver=letsencrypt" |
|
|
|
- "--entrypoints.https.http.tls.certresolver=letsencrypt" |
|
|
|
- "--entrypoints.https.http.tls.domains[0].main=${DOMAINNAME}" |
|
|
|
- "--entrypoints.https.http.tls.domains[0].main=${DOMAINNAME}" |
|
|
|
- "--entrypoints.https.http.tls.domains[0].sans=*.${DOMAINNAME}" |
|
|
|
- "--entrypoints.https.http.tls.domains[0].sans=*.${DOMAINNAME}" |
|
|
|
- "--entrypoints.http.http.redirections.entryPoint.to=https" |
|
|
|
- "--entrypoints.http.http.redirections.entryPoint.to=https" |
|
|
|
- "--entrypoints.http.http.redirections.entryPoint.scheme=https" |
|
|
|
- "--entrypoints.http.http.redirections.entryPoint.scheme=https" |
|
|
|
- "--certificatesresolvers.letsencrypt.acme.dnsChallenge.delayBeforeCheck=15" |
|
|
|
- "--certificatesresolvers.letsencrypt.acme.dnsChallenge.delayBeforeCheck=15" |
|
|
|
- "--certificatesresolvers.letsencrypt.acme.dnschallenge.provider=cloudflare" |
|
|
|
- "--certificatesresolvers.letsencrypt.acme.dnschallenge.provider=cloudflare" |
|
|
|
- "--certificatesresolvers.letsencrypt.acme.email=info@${DOMAINNAME}" |
|
|
|
- "--certificatesresolvers.letsencrypt.acme.email=info@${DOMAINNAME}" |
|
|
@ -46,7 +48,7 @@ services: |
|
|
|
- default |
|
|
|
- default |
|
|
|
- traefik_proxy |
|
|
|
- traefik_proxy |
|
|
|
ports: |
|
|
|
ports: |
|
|
|
- "80:80" |
|
|
|
- "80:80" |
|
|
|
- "443:443" |
|
|
|
- "443:443" |
|
|
|
volumes: |
|
|
|
volumes: |
|
|
|
- "letsencrypt:/letsencrypt" |
|
|
|
- "letsencrypt:/letsencrypt" |
|
|
@ -57,33 +59,35 @@ services: |
|
|
|
container_name: watchtower |
|
|
|
container_name: watchtower |
|
|
|
restart: always |
|
|
|
restart: always |
|
|
|
networks: |
|
|
|
networks: |
|
|
|
- traefik_proxy |
|
|
|
- traefik_proxy |
|
|
|
command: --schedule "0 5 * * *" --cleanup --label-enable |
|
|
|
command: --schedule "0 5 * * *" --cleanup --label-enable |
|
|
|
|
|
|
|
|
|
|
|
volumes: |
|
|
|
volumes: |
|
|
|
- /var/run/docker.sock:/var/run/docker.sock:ro |
|
|
|
- /var/run/docker.sock:/var/run/docker.sock:ro |
|
|
|
labels: |
|
|
|
labels: |
|
|
|
- "com.centurylinklabs.watchtower.enable=true" |
|
|
|
- "com.centurylinklabs.watchtower.enable=true" |
|
|
|
|
|
|
|
|
|
|
|
nocodb: |
|
|
|
nocodb: |
|
|
|
container_name: nocodb |
|
|
|
container_name: nocodb |
|
|
|
image: nocodb/nocodb:latest |
|
|
|
image: nocodb/nocodb:latest |
|
|
|
restart: always |
|
|
|
restart: always |
|
|
|
|
|
|
|
volumes: |
|
|
|
|
|
|
|
- nocodb-data:/usr/app/data |
|
|
|
networks: |
|
|
|
networks: |
|
|
|
- traefik_proxy |
|
|
|
- traefik_proxy |
|
|
|
environment: |
|
|
|
environment: |
|
|
|
- NC_DB=pg://nocodb-db:5432?u=${DATABASE_USER}&p=${DATABASE_PW}&d=${DATABASE_NAME} |
|
|
|
- NC_DB=pg://nocodb-db:5432?u=${DATABASE_USER}&p=${DATABASE_PW}&d=${DATABASE_NAME} |
|
|
|
- NC_PUBLIC_URL=https://nocodb.${DOMAINNAME} |
|
|
|
- NC_PUBLIC_URL=https://nocodb.${DOMAINNAME} |
|
|
|
- NC_DISABLE_TELE=true |
|
|
|
- NC_DISABLE_TELE=true |
|
|
|
labels: |
|
|
|
labels: |
|
|
|
- "traefik.enable=true" |
|
|
|
- "traefik.enable=true" |
|
|
|
- "traefik.http.services.nocodb.loadbalancer.server.port=8080" |
|
|
|
- "traefik.http.services.nocodb.loadbalancer.server.port=8080" |
|
|
|
- "traefik.http.routers.nocodb.rule=Host(`nocodb.${DOMAINNAME}`)" |
|
|
|
- "traefik.http.routers.nocodb.rule=Host(`nocodb.${DOMAINNAME}`)" |
|
|
|
- "traefik.http.routers.nocodb.entrypoints=https" |
|
|
|
- "traefik.http.routers.nocodb.entrypoints=https" |
|
|
|
- "com.centurylinklabs.watchtower.enable=true" |
|
|
|
- "com.centurylinklabs.watchtower.enable=true" |
|
|
|
depends_on: |
|
|
|
depends_on: |
|
|
|
- nocodb-db |
|
|
|
- nocodb-db |
|
|
|
|
|
|
|
|
|
|
|
nocodb-db: |
|
|
|
nocodb-db: |
|
|
|
image: postgres:12.1-alpine |
|
|
|
image: postgres:12.1-alpine |
|
|
|
container_name: nocodb-db |
|
|
|
container_name: nocodb-db |
|
|
|