diff --git a/makefile b/makefile index 86108eb..c177dbd 100644 --- a/makefile +++ b/makefile @@ -14,13 +14,21 @@ pull: @echo "Pulling the project..." git pull +deploy-services: pull + @echo "Deploying the services stack..." + $(loadenvs ./swarm/.env) && docker stack deploy --compose-file ./swarm/services.yml services deploy-apps: pull @echo "Deploying the apps stack..." $(loadenvs ./swarm/.env) && docker stack deploy --compose-file ./swarm/apps.yml apps +deploy-ghost: pull + @echo "Deploying the ghost stack..." + $(loadenvs ./swarm/.env) + docker stack deploy --compose-file ./swarm/ghost.yml ghost + deploy-test: pull - @echo "Deploying the apps stack..." + @echo "Deploying the test stack..." $(loadenvs ./swarm/.env) docker stack deploy --compose-file ./swarm/thelounge.yml thelounge # git submodule update --init --recursive \ No newline at end of file diff --git a/swarm/ghost.yml b/swarm/ghost.yml index 738f404..7e45cde 100644 --- a/swarm/ghost.yml +++ b/swarm/ghost.yml @@ -1,6 +1,3 @@ -volumes: - ghost_content: {} - ghost_mysql: {} networks: ghost: driver: overlay @@ -18,7 +15,7 @@ services: environment: MYSQL_ROOT_PASSWORD: ${POSTGRES_PASSWORD} volumes: - - ghost_mysql:/var/lib/mysql + - /var/data/ghost_mysql:/var/lib/mysql expose: - 3306 networks: @@ -42,7 +39,7 @@ services: database__connection__database: ghost DOMAIN: https://ghost.${DOMAIN} volumes: - - ghost_content:/var/lib/ghost/content + - /var/data/ghost_content:/var/lib/ghost/content expose: - 2368 networks: @@ -50,9 +47,9 @@ services: - traefik-public deploy: labels: + - traefik.enable=true - traefik.docker.network=traefik-public - traefik.constraint-label=traefik-public - - traefik.enable=true - traefik.http.routers.ghost.entrypoints=https - traefik.http.routers.ghost.rule=Host(`ghost.${DOMAIN}`) - traefik.http.routers.ghost.tls.certresolver=le