php_with_node (#3)
PHP8 + NodeJS + Debian Bullseye Co-authored-by: Hide_D <hided62@gmail.com> Reviewed-on: https://storage.hided.net/gitea/devsam/docker/pulls/3 Co-authored-by: hide_d <hided62@gmail.com> Co-committed-by: hide_d <hided62@gmail.com>
This commit was merged in pull request #3.
This commit is contained in:
@@ -0,0 +1,68 @@
|
||||
version: '3.2'
|
||||
|
||||
services:
|
||||
db:
|
||||
ports:
|
||||
- 3306:3306
|
||||
#For DEV. Expose MySQL port
|
||||
volumes:
|
||||
- type: bind
|
||||
source: ~/dev_sam/db
|
||||
target: /var/lib/mysql
|
||||
|
||||
web:
|
||||
build:
|
||||
args:
|
||||
UID: 1000
|
||||
GID: 1000
|
||||
#For DEV. Set UID of www-data as first local user
|
||||
ports:
|
||||
- 8084:80
|
||||
#For DEV. Export Web port.
|
||||
volumes:
|
||||
- type: bind
|
||||
source: ~/dev_sam/app
|
||||
target: /var/www/html
|
||||
#For DEV. Set app path as local directory
|
||||
- type: bind
|
||||
source: ~/dev_sam/bbs
|
||||
target: /var/www/board
|
||||
|
||||
app:
|
||||
build:
|
||||
args:
|
||||
UID: 1000
|
||||
GID: 1000
|
||||
volumes:
|
||||
- type: bind
|
||||
source: ~/dev_sam/app
|
||||
target: /var/www/html
|
||||
|
||||
board:
|
||||
build:
|
||||
args:
|
||||
UID: 1000
|
||||
GID: 1000
|
||||
volumes:
|
||||
- type: bind
|
||||
source: ~/dev_sam/board
|
||||
target: /var/www/board
|
||||
|
||||
install:
|
||||
volumes:
|
||||
- type: bind
|
||||
source: ~/dev_sam/app
|
||||
target: /var/www/html
|
||||
|
||||
cron:
|
||||
build: ./cron
|
||||
restart: "no"
|
||||
#For DEV. Disable cron
|
||||
entrypoint: ["echo", "Service cron disabled"]
|
||||
|
||||
volumes:
|
||||
- type: bind
|
||||
source: ~/dev_sam/app
|
||||
target: /var/www/html
|
||||
depends_on:
|
||||
- app
|
||||
Reference in New Issue
Block a user