Browse Source

Merge pull request #1364 from atompi/develop

update docker-compose.yml: resolve nocodb data folder mounted to the …
pull/1370/head
navi 3 years ago committed by GitHub
parent
commit
5e18153223
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      docker-compose/mssql/docker-compose.yml
  2. 3
      docker-compose/mysql/docker-compose.yml
  3. 3
      docker-compose/nginx-proxy-manager/docker-compose.yml
  4. 3
      docker-compose/pg/docker-compose.yml
  5. 4
      docker-compose/traefik/docker-compose.yml

3
docker-compose/mssql/docker-compose.yml

@ -6,7 +6,6 @@ services:
restart: always restart: always
volumes: volumes:
- db_data:/var/opt/mssql - db_data:/var/opt/mssql
- nc_data:/usr/app/data
environment: environment:
SA_PASSWORD: Password123. SA_PASSWORD: Password123.
ACCEPT_EULA: Y ACCEPT_EULA: Y
@ -25,6 +24,8 @@ services:
ports: ports:
- "8080:8080" - "8080:8080"
restart: always restart: always
volumes:
- nc_data:/usr/app/data
environment: environment:
NC_DB: "mssql://root_db:1433?u=sa&p=Password123.&d=root_db" NC_DB: "mssql://root_db:1433?u=sa&p=Password123.&d=root_db"
volumes: volumes:

3
docker-compose/mysql/docker-compose.yml

@ -5,7 +5,6 @@ services:
image: mysql:5.7 image: mysql:5.7
volumes: volumes:
- db_data:/var/lib/mysql - db_data:/var/lib/mysql
- nc_data:/usr/app/data
# below line shows how to change charset and collation # below line shows how to change charset and collation
# uncomment it if necessary # uncomment it if necessary
# command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci # command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
@ -28,6 +27,8 @@ services:
ports: ports:
- "8080:8080" - "8080:8080"
restart: always restart: always
volumes:
- nc_data:/usr/app/data
environment: environment:
NC_DB: "mysql2://root_db:3306?u=noco&p=password&d=root_db" NC_DB: "mysql2://root_db:3306?u=noco&p=password&d=root_db"
volumes: volumes:

3
docker-compose/nginx-proxy-manager/docker-compose.yml

@ -5,7 +5,6 @@ services:
image: mysql:5.7 image: mysql:5.7
volumes: volumes:
- db_data:/var/lib/mysql - db_data:/var/lib/mysql
- nc_data:/usr/app/data
restart: always restart: always
environment: environment:
MYSQL_ROOT_PASSWORD: password MYSQL_ROOT_PASSWORD: password
@ -25,6 +24,8 @@ services:
condition: service_healthy condition: service_healthy
image: nocodb/nocodb:latest image: nocodb/nocodb:latest
restart: always restart: always
volumes:
- nc_data:/usr/app/data
environment: environment:
NC_DB: "mysql2://root_db:3306?u=noco&p=password&d=root_db" NC_DB: "mysql2://root_db:3306?u=noco&p=password&d=root_db"
networks: networks:

3
docker-compose/pg/docker-compose.yml

@ -6,7 +6,6 @@ services:
restart: always restart: always
volumes: volumes:
- db_data:/var/lib/postgresql/data - db_data:/var/lib/postgresql/data
- nc_data:/usr/app/data
environment: environment:
POSTGRES_PASSWORD: password POSTGRES_PASSWORD: password
POSTGRES_USER: postgres POSTGRES_USER: postgres
@ -24,6 +23,8 @@ services:
ports: ports:
- "8080:8080" - "8080:8080"
restart: always restart: always
volumes:
- nc_data:/usr/app/data
environment: environment:
NC_DB: "pg://root_db:5432?u=postgres&p=password&d=root_db" NC_DB: "pg://root_db:5432?u=postgres&p=password&d=root_db"
volumes: volumes:

4
docker-compose/traefik/docker-compose.yml

@ -9,6 +9,8 @@ volumes:
name: traefik-letsencrypt name: traefik-letsencrypt
nocodb-db: nocodb-db:
name: nocodb-db name: nocodb-db
nocodb-data:
name: nocodb-data
services: services:
@ -69,6 +71,8 @@ services:
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:

Loading…
Cancel
Save