Skip to content

Commit

Permalink
Add extra commands
Browse files Browse the repository at this point in the history
  • Loading branch information
relliv committed Sep 27, 2024
1 parent c830118 commit fd2ec66
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 13 deletions.
13 changes: 7 additions & 6 deletions docker-compose-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@ services:
PHP_POOL_NAME: 'app_pool'
PHP_OPCACHE_ENABLE: '1'
networks:
- app_net
- redis_net
- ls_dev_app_net
- ls_dev_redis_net
command: ['php', '/var/www/html/artisan', 'schedule:work']

# Database
ls_dev_db:
Expand All @@ -41,7 +42,7 @@ services:
MYSQL_PASSWORD: ${DB_PASSWORD}
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD}
networks:
- app_net
- ls_dev_app_net

# Redis
ls_dev_redis:
Expand All @@ -52,7 +53,7 @@ services:
ports:
- ${REDIS_PORT}:6379
networks:
- redis_net
- ls_dev_redis_net

# MailHog Server
ls_dev_mail_hog:
Expand All @@ -64,14 +65,14 @@ services:
- 10002:8025

networks:
app_net:
ls_dev_app_net:
driver: bridge
ipam:
driver: default
config:
- subnet: 10.20.0.0/16

redis_net:
ls_dev_redis_net:
driver: bridge
ipam:
driver: default
Expand Down
14 changes: 7 additions & 7 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ services:
PHP_POOL_NAME: 'app_pool'
PHP_OPCACHE_ENABLE: '1'
networks:
- app_net
- redis_net
command: ['su', 'webuser', '-c', 'php artisan schedule:work']
- ls_prod_app_net
- ls_prod_redis_net
command: ['php', '/var/www/html/artisan', 'schedule:work']

# Database
ls_prod_db:
Expand All @@ -43,7 +43,7 @@ services:
MYSQL_PASSWORD: ${DB_PASSWORD}
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD}
networks:
- app_net
- ls_prod_app_net

# Redis
ls_prod_redis:
Expand All @@ -54,17 +54,17 @@ services:
ports:
- ${REDIS_PORT}:6379
networks:
- redis_net
- ls_prod_redis_net

networks:
app_net:
ls_prod_app_net:
driver: bridge
ipam:
driver: default
config:
- subnet: 10.10.0.0/16

redis_net:
ls_prod_redis_net:
driver: bridge
ipam:
driver: default
Expand Down

0 comments on commit fd2ec66

Please sign in to comment.