mirror of
https://github.com/nocodb/nocodb.git
synced 2026-05-04 20:16:35 +00:00
refactor(docker-compose): formatting
This commit is contained in:
@@ -1,58 +1,58 @@
|
||||
version: '2.1'
|
||||
|
||||
services:
|
||||
root_db:
|
||||
image: mysql:5.7
|
||||
volumes:
|
||||
- db_data:/var/lib/mysql
|
||||
restart: always
|
||||
environment:
|
||||
MYSQL_ROOT_PASSWORD: password
|
||||
MYSQL_DATABASE: root_db
|
||||
MYSQL_USER: noco
|
||||
MYSQL_PASSWORD: password
|
||||
healthcheck:
|
||||
test: [ "CMD", "mysqladmin" ,"ping", "-h", "localhost" ]
|
||||
timeout: 20s
|
||||
retries: 10
|
||||
networks:
|
||||
- default
|
||||
|
||||
nocodb:
|
||||
depends_on:
|
||||
root_db:
|
||||
condition: service_healthy
|
||||
image: nocodb/nocodb:latest
|
||||
restart: always
|
||||
volumes:
|
||||
- nc_data:/usr/app/data
|
||||
environment:
|
||||
NC_DB: "mysql2://root_db:3306?u=noco&p=password&d=root_db"
|
||||
networks:
|
||||
- default
|
||||
- nginxproxy
|
||||
|
||||
nginx-proxy-manager:
|
||||
image: jlesage/nginx-proxy-manager
|
||||
restart: always
|
||||
environment:
|
||||
PUID: 1000
|
||||
networks:
|
||||
default: ~
|
||||
nginxproxy: ~
|
||||
services:
|
||||
nginx-proxy-manager:
|
||||
environment:
|
||||
PGID: 1000
|
||||
PUID: 1000
|
||||
TZ: Europe/Amsterdam
|
||||
ports:
|
||||
image: jlesage/nginx-proxy-manager
|
||||
networks:
|
||||
- nginxproxy
|
||||
ports:
|
||||
- "8181:8181"
|
||||
- "80:8080"
|
||||
- "443:4443"
|
||||
volumes:
|
||||
- nginx-proxy-manager:/config:rw
|
||||
networks:
|
||||
restart: always
|
||||
volumes:
|
||||
- "nginx-proxy-manager:/config:rw"
|
||||
nocodb:
|
||||
depends_on:
|
||||
root_db:
|
||||
condition: service_healthy
|
||||
environment:
|
||||
NC_DB: "mysql2://root_db:3306?u=noco&p=password&d=root_db"
|
||||
image: "nocodb/nocodb:latest"
|
||||
networks:
|
||||
- default
|
||||
- nginxproxy
|
||||
|
||||
volumes:
|
||||
nginx-proxy-manager: {}
|
||||
restart: always
|
||||
volumes:
|
||||
- "nc_data:/usr/app/data"
|
||||
root_db:
|
||||
environment:
|
||||
MYSQL_DATABASE: root_db
|
||||
MYSQL_PASSWORD: password
|
||||
MYSQL_ROOT_PASSWORD: password
|
||||
MYSQL_USER: noco
|
||||
healthcheck:
|
||||
retries: 10
|
||||
test:
|
||||
- CMD
|
||||
- mysqladmin
|
||||
- ping
|
||||
- "-h"
|
||||
- localhost
|
||||
timeout: 20s
|
||||
image: "mysql:5.7"
|
||||
networks:
|
||||
- default
|
||||
restart: always
|
||||
volumes:
|
||||
- "db_data:/var/lib/mysql"
|
||||
volumes:
|
||||
db_data: {}
|
||||
nc_data: {}
|
||||
|
||||
networks:
|
||||
default:
|
||||
nginxproxy:
|
||||
nginx-proxy-manager: {}
|
||||
|
||||
Reference in New Issue
Block a user