fix: remove entrypoints=https, add coolify network, fix healthcheck
This commit is contained in:
+11
-15
@@ -37,18 +37,16 @@ services:
|
||||
redis:
|
||||
condition: service_healthy
|
||||
networks:
|
||||
- coolify-proxy
|
||||
- mixpost
|
||||
- coolify
|
||||
labels:
|
||||
- traefik.enable=true
|
||||
- traefik.http.routers.mixapp.rule=Host(`mixpost.fluxtechnologies.uk`)
|
||||
- traefik.http.routers.mixapp.entrypoints=https
|
||||
- traefik.http.routers.mixapp.tls=true
|
||||
- traefik.http.routers.mixapp.tls.certresolver=letsencrypt
|
||||
- traefik.http.services.mixapp.loadbalancer.server.port=80
|
||||
- traefik.http.routers.mixpost.rule=Host(`mixpost.fluxtechnologies.uk`)
|
||||
- traefik.http.routers.mixpost.tls=true
|
||||
- traefik.http.routers.mixpost.tls.certresolver=letsencrypt
|
||||
- traefik.http.services.mixpost.loadbalancer.server.port=80
|
||||
- coolify.managed=true
|
||||
healthcheck:
|
||||
test: ["CMD", "wget", "-qO-", "http://localhost/api/mixpost"]
|
||||
test: ["CMD", "curl", "-f", "http://localhost/api/mixpost"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
@@ -77,7 +75,7 @@ services:
|
||||
app:
|
||||
condition: service_started
|
||||
networks:
|
||||
- mixpost
|
||||
- coolify
|
||||
|
||||
scheduler:
|
||||
image: inovector/mixpost:latest
|
||||
@@ -100,7 +98,7 @@ services:
|
||||
QUEUE_CONNECTION: redis
|
||||
SESSION_DRIVER: redis
|
||||
networks:
|
||||
- mixpost
|
||||
- coolify
|
||||
|
||||
db:
|
||||
image: mysql:8.0
|
||||
@@ -113,7 +111,7 @@ services:
|
||||
volumes:
|
||||
- mixpost-db:/var/lib/mysql
|
||||
networks:
|
||||
- mixpost
|
||||
- coolify
|
||||
healthcheck:
|
||||
test: ["CMD", "mysqladmin", "ping", "-h", "localhost", "-u", "root", "-p$$MYSQL_ROOT_PASSWORD"]
|
||||
interval: 10s
|
||||
@@ -124,7 +122,7 @@ services:
|
||||
image: redis:7-alpine
|
||||
restart: always
|
||||
networks:
|
||||
- mixpost
|
||||
- coolify
|
||||
healthcheck:
|
||||
test: ["CMD", "redis-cli", "ping"]
|
||||
interval: 10s
|
||||
@@ -135,7 +133,5 @@ volumes:
|
||||
mixpost-db:
|
||||
|
||||
networks:
|
||||
coolify-proxy:
|
||||
coolify:
|
||||
external: true
|
||||
mixpost:
|
||||
driver: bridge
|
||||
|
||||
Reference in New Issue
Block a user