Skip to content

Commit

Permalink
Update docker compose config
Browse files Browse the repository at this point in the history
  • Loading branch information
relliv committed Aug 24, 2024
1 parent 08ed164 commit f973019
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
8 changes: 3 additions & 5 deletions docker-compose-dev.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# Example Dev Environment Setup

version: '3.8'

name: ls_dev

services:
Expand All @@ -20,7 +18,7 @@ services:
AUTORUN_LARAVEL_MIGRATION: 'true'
SSL_MODE: 'off'
networks:
- db_net
- app_net
- redis_net
command: ['su', 'webuser', '-c', 'php artisan schedule:work']

Expand All @@ -38,7 +36,7 @@ services:
MYSQL_PASSWORD: ${DB_PASSWORD}
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD}
networks:
- db_net
- app_net

# Redis
ls_dev_redis:
Expand All @@ -61,7 +59,7 @@ services:
- 10002:8025

networks:
db_net:
app_net:
driver: bridge
ipam:
driver: default
Expand Down
8 changes: 3 additions & 5 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# Example Prod Environment Setup

version: '3.8'

name: ls_prod

services:
Expand All @@ -22,7 +20,7 @@ services:
AUTORUN_LARAVEL_MIGRATION: 'true'
SSL_MODE: 'off'
networks:
- db_net
- app_net
- redis_net
command: ['su', 'webuser', '-c', 'php artisan schedule:work']

Expand All @@ -40,7 +38,7 @@ services:
MYSQL_PASSWORD: ${DB_PASSWORD}
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD}
networks:
- db_net
- app_net

# Redis
ls_prod_redis:
Expand All @@ -54,7 +52,7 @@ services:
- redis_net

networks:
db_net:
app_net:
driver: bridge
ipam:
driver: default
Expand Down

0 comments on commit f973019

Please sign in to comment.