mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-25 10:25:01 +00:00
Update docker-compose.production.yml
This commit is contained in:
parent
57de085b53
commit
dbf861b69a
1 changed files with 53 additions and 2 deletions
|
@ -7,10 +7,21 @@ services:
|
||||||
args:
|
args:
|
||||||
API_PORT: ${API_PORT:?Missing API_PORT}
|
API_PORT: ${API_PORT:?Missing API_PORT}
|
||||||
DOCKER_PROD_DOMAIN: ${DOCKER_PROD_DOMAIN:?Missing DOCKER_PROD_DOMAIN}
|
DOCKER_PROD_DOMAIN: ${DOCKER_PROD_DOMAIN:?Missing DOCKER_PROD_DOMAIN}
|
||||||
ports:
|
expose:
|
||||||
- "${DOCKER_PROD_WEB_PORT:?Missing DOCKER_PROD_WEB_PORT}:443"
|
#- "${DOCKER_PROD_WEB_PORT:?Missing DOCKER_PROD_WEB_PORT}:443"
|
||||||
|
#- "${DOCKER_PROD_WEB_PORT:?Missing DOCKER_PROD_WEB_PORT}:80"
|
||||||
|
- "80"
|
||||||
|
environment:
|
||||||
|
VIRTUAL_HOST: ${DOCKER_PROD_DOMAIN:?Missing DOCKER_PROD_DOMAIN}
|
||||||
|
VIRTUAL_PATH: /
|
||||||
|
LETSENCRYPT_HOST: ${DOCKER_PROD_DOMAIN:?Missing DOCKER_PROD_DOMAIN}
|
||||||
|
LETSENCRYPT_EMAIL: $LETSENCRYPT_EMAIL
|
||||||
|
DEBUG: true
|
||||||
volumes:
|
volumes:
|
||||||
- ./:/zeppelin
|
- ./:/zeppelin
|
||||||
|
networks:
|
||||||
|
- network
|
||||||
|
- nginx-proxy
|
||||||
|
|
||||||
mysql:
|
mysql:
|
||||||
image: mysql:8.0
|
image: mysql:8.0
|
||||||
|
@ -24,12 +35,38 @@ services:
|
||||||
volumes:
|
volumes:
|
||||||
- ./docker/production/data/mysql:/var/lib/mysql
|
- ./docker/production/data/mysql:/var/lib/mysql
|
||||||
command: --authentication-policy=mysql_native_password
|
command: --authentication-policy=mysql_native_password
|
||||||
|
networks:
|
||||||
|
- network
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: "/usr/bin/mysql --user=root --password=\"${DOCKER_PROD_MYSQL_ROOT_PASSWORD}\" --execute \"SHOW DATABASES;\""
|
test: "/usr/bin/mysql --user=root --password=\"${DOCKER_PROD_MYSQL_ROOT_PASSWORD}\" --execute \"SHOW DATABASES;\""
|
||||||
interval: 5s
|
interval: 5s
|
||||||
timeout: 300s
|
timeout: 300s
|
||||||
retries: 60
|
retries: 60
|
||||||
|
|
||||||
|
phpmyadmin:
|
||||||
|
depends_on:
|
||||||
|
- mysql
|
||||||
|
image: phpmyadmin:latest
|
||||||
|
restart: unless-stopped
|
||||||
|
expose:
|
||||||
|
- "80"
|
||||||
|
#- "443"
|
||||||
|
environment:
|
||||||
|
PMA_HOST: mysql
|
||||||
|
PMA_ABSOLUTE_URI: https://${DOCKER_PROD_DOMAIN:?Missing DOCKER_PROD_DOMAIN}/phpmyadmin/
|
||||||
|
MYSQL_ROOT_PASSWORD: ${DOCKER_PROD_MYSQL_ROOT_PASSWORD?:Missing DOCKER_PROD_MYSQL_ROOT_PASSWORD}
|
||||||
|
MYSQL_USER: zeppelin
|
||||||
|
MYSQL_PASSWORD: ${DOCKER_PROD_MYSQL_PASSWORD?:Missing DOCKER_PROD_MYSQL_PASSWORD}
|
||||||
|
VIRTUAL_HOST: ${DOCKER_PROD_DOMAIN:?Missing DOCKER_PROD_DOMAIN}
|
||||||
|
VIRTUAL_PATH: /phpmyadmin
|
||||||
|
VIRTUAL_DEST: /
|
||||||
|
LETSENCRYPT_HOST: ${DOCKER_PROD_DOMAIN:?Missing DOCKER_PROD_DOMAIN}
|
||||||
|
LETSENCRYPT_EMAIL: $LETSENCRYPT_EMAIL
|
||||||
|
DEBUG: ${DEBUG:-false}
|
||||||
|
networks:
|
||||||
|
- network
|
||||||
|
- nginx-proxy
|
||||||
|
|
||||||
prepare_backend:
|
prepare_backend:
|
||||||
build:
|
build:
|
||||||
context: ./docker/production/node
|
context: ./docker/production/node
|
||||||
|
@ -41,6 +78,8 @@ services:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
volumes:
|
volumes:
|
||||||
- ./:/zeppelin
|
- ./:/zeppelin
|
||||||
|
networks:
|
||||||
|
- network
|
||||||
command: |-
|
command: |-
|
||||||
bash -c "cd /zeppelin/backend && npm ci && npm run build && npm run migrate-prod"
|
bash -c "cd /zeppelin/backend && npm ci && npm run build && npm run migrate-prod"
|
||||||
|
|
||||||
|
@ -55,6 +94,8 @@ services:
|
||||||
- prepare_backend
|
- prepare_backend
|
||||||
volumes:
|
volumes:
|
||||||
- ./:/zeppelin
|
- ./:/zeppelin
|
||||||
|
networks:
|
||||||
|
- network
|
||||||
command: ["/bin/bash", "/zeppelin/docker/production/start-api.sh"]
|
command: ["/bin/bash", "/zeppelin/docker/production/start-api.sh"]
|
||||||
|
|
||||||
bot:
|
bot:
|
||||||
|
@ -68,6 +109,8 @@ services:
|
||||||
- prepare_backend
|
- prepare_backend
|
||||||
volumes:
|
volumes:
|
||||||
- ./:/zeppelin
|
- ./:/zeppelin
|
||||||
|
networks:
|
||||||
|
- network
|
||||||
command: ["/bin/bash", "/zeppelin/docker/production/start-bot.sh"]
|
command: ["/bin/bash", "/zeppelin/docker/production/start-bot.sh"]
|
||||||
|
|
||||||
build_dashboard:
|
build_dashboard:
|
||||||
|
@ -78,5 +121,13 @@ services:
|
||||||
DOCKER_USER_GID: ${DOCKER_USER_GID:?Missing DOCKER_USER_GID}
|
DOCKER_USER_GID: ${DOCKER_USER_GID:?Missing DOCKER_USER_GID}
|
||||||
volumes:
|
volumes:
|
||||||
- ./:/zeppelin
|
- ./:/zeppelin
|
||||||
|
networks:
|
||||||
|
- network
|
||||||
command: |-
|
command: |-
|
||||||
bash -c "cd /zeppelin/dashboard && npm ci && npm run build"
|
bash -c "cd /zeppelin/dashboard && npm ci && npm run build"
|
||||||
|
|
||||||
|
networks:
|
||||||
|
network:
|
||||||
|
nginx-proxy:
|
||||||
|
name: nginx-proxy
|
||||||
|
external: true
|
Loading…
Add table
Add a link
Reference in a new issue