mirror of https://github.com/nocodb/nocodb
Browse Source
Example docker-compose.yml for use with nginx-proxy-manager and 2 seperate networkspull/562/head
o1lab
3 years ago
committed by
GitHub
1 changed files with 55 additions and 0 deletions
@ -0,0 +1,55 @@
|
||||
version: '3.3' |
||||
|
||||
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 |
||||
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 |
||||
PGID: 1000 |
||||
TZ: Europe/Amsterdam |
||||
ports: |
||||
- "8181:8181" |
||||
- "80:8080" |
||||
- "443:4443" |
||||
volumes: |
||||
- nginx-proxy-manager:/config:rw |
||||
networks: |
||||
- nginxproxy |
||||
|
||||
volumes: |
||||
nginx-proxy-manager: {} |
||||
db_data: {} |
||||
|
||||
networks: |
||||
default: |
||||
nginxproxy: |
Loading…
Reference in new issue