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