fix: restart policy for app services, dockerignore for prod image
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BCrwHHnGCB5XH968Nxokqw
This commit is contained in:
12
core/.dockerignore
Normal file
12
core/.dockerignore
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
.env
|
||||||
|
.env.*
|
||||||
|
!.env.example
|
||||||
|
vendor
|
||||||
|
node_modules
|
||||||
|
tests
|
||||||
|
storage/logs/*
|
||||||
|
storage/framework/cache/*
|
||||||
|
storage/framework/sessions/*
|
||||||
|
storage/framework/views/*
|
||||||
|
.phpunit.result.cache
|
||||||
|
.git
|
||||||
@@ -8,6 +8,7 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- "8080:8000"
|
- "8080:8000"
|
||||||
env_file: ./core/.env
|
env_file: ./core/.env
|
||||||
|
restart: unless-stopped
|
||||||
depends_on:
|
depends_on:
|
||||||
postgres:
|
postgres:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
@@ -20,6 +21,7 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- ./core:/app
|
- ./core:/app
|
||||||
env_file: ./core/.env
|
env_file: ./core/.env
|
||||||
|
restart: unless-stopped
|
||||||
depends_on:
|
depends_on:
|
||||||
postgres:
|
postgres:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
@@ -32,12 +34,14 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- ./core:/app
|
- ./core:/app
|
||||||
env_file: ./core/.env
|
env_file: ./core/.env
|
||||||
|
restart: unless-stopped
|
||||||
depends_on:
|
depends_on:
|
||||||
postgres:
|
postgres:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
|
|
||||||
postgres:
|
postgres:
|
||||||
image: postgres:17
|
image: postgres:17
|
||||||
|
restart: unless-stopped
|
||||||
environment:
|
environment:
|
||||||
POSTGRES_DB: hado
|
POSTGRES_DB: hado
|
||||||
POSTGRES_USER: hado
|
POSTGRES_USER: hado
|
||||||
|
|||||||
Reference in New Issue
Block a user