feat: docker docmpose
This commit is contained in:
parent
32a13602d8
commit
dadd4e04b1
|
|
@ -63,21 +63,38 @@ x-app-service: &app-service
|
||||||
environment: *app-environment
|
environment: *app-environment
|
||||||
volumes: *app-volumes
|
volumes: *app-volumes
|
||||||
networks:
|
networks:
|
||||||
- nginx
|
|
||||||
- internal
|
- internal
|
||||||
|
- public
|
||||||
stop_grace_period: 30s
|
stop_grace_period: 30s
|
||||||
|
|
||||||
services:
|
services:
|
||||||
|
# =========================
|
||||||
|
# BLUE
|
||||||
|
# =========================
|
||||||
bemeal-api-blue:
|
bemeal-api-blue:
|
||||||
<<: *app-service
|
<<: *app-service
|
||||||
container_name: bemeal-api-blue
|
container_name: bemeal-api-blue
|
||||||
healthcheck: *app-healthcheck
|
healthcheck: *app-healthcheck
|
||||||
|
networks:
|
||||||
|
public:
|
||||||
|
aliases:
|
||||||
|
- bemeal-app
|
||||||
|
|
||||||
|
# =========================
|
||||||
|
# GREEN
|
||||||
|
# =========================
|
||||||
bemeal-api-green:
|
bemeal-api-green:
|
||||||
<<: *app-service
|
<<: *app-service
|
||||||
container_name: bemeal-api-green
|
container_name: bemeal-api-green
|
||||||
healthcheck: *app-healthcheck
|
healthcheck: *app-healthcheck
|
||||||
|
networks:
|
||||||
|
public:
|
||||||
|
aliases:
|
||||||
|
- bemeal-app
|
||||||
|
|
||||||
|
# =========================
|
||||||
|
# DATABASE
|
||||||
|
# =========================
|
||||||
pgsql:
|
pgsql:
|
||||||
image: postgres:15-alpine
|
image: postgres:15-alpine
|
||||||
container_name: bemeal-pgsql
|
container_name: bemeal-pgsql
|
||||||
|
|
@ -118,7 +135,6 @@ services:
|
||||||
environment: *app-environment
|
environment: *app-environment
|
||||||
volumes: *app-volumes
|
volumes: *app-volumes
|
||||||
command: "php artisan horizon"
|
command: "php artisan horizon"
|
||||||
stop_grace_period: 60s
|
|
||||||
networks:
|
networks:
|
||||||
- internal
|
- internal
|
||||||
|
|
||||||
|
|
@ -134,7 +150,6 @@ services:
|
||||||
environment: *app-environment
|
environment: *app-environment
|
||||||
volumes: *app-volumes
|
volumes: *app-volumes
|
||||||
command: "php artisan schedule:work"
|
command: "php artisan schedule:work"
|
||||||
stop_grace_period: 30s
|
|
||||||
networks:
|
networks:
|
||||||
- internal
|
- internal
|
||||||
|
|
||||||
|
|
@ -159,6 +174,9 @@ services:
|
||||||
networks:
|
networks:
|
||||||
- internal
|
- internal
|
||||||
|
|
||||||
|
# =========================
|
||||||
|
# VOLUMES
|
||||||
|
# =========================
|
||||||
volumes:
|
volumes:
|
||||||
pgsql-data:
|
pgsql-data:
|
||||||
external: true
|
external: true
|
||||||
|
|
@ -172,8 +190,13 @@ volumes:
|
||||||
meilisearch-data:
|
meilisearch-data:
|
||||||
name: bemeal_meilisearch_data
|
name: bemeal_meilisearch_data
|
||||||
|
|
||||||
|
# =========================
|
||||||
|
# NETWORKS
|
||||||
|
# =========================
|
||||||
networks:
|
networks:
|
||||||
nginx:
|
|
||||||
external: true
|
|
||||||
internal:
|
internal:
|
||||||
driver: bridge
|
driver: bridge
|
||||||
|
|
||||||
|
public:
|
||||||
|
external: true
|
||||||
|
name: bemeal_public
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue