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