application working with php
This commit is contained in:
57
templates/docker-compose-php.yaml
Normal file
57
templates/docker-compose-php.yaml
Normal file
@ -0,0 +1,57 @@
|
||||
services:
|
||||
|
||||
cosmostat_redis:
|
||||
container_name: cosmostat_redis
|
||||
image: redis:7-alpine
|
||||
ports:
|
||||
- "{{ docker_gateway }}:6379:6379"
|
||||
networks:
|
||||
- cosmostat_net
|
||||
restart: always
|
||||
|
||||
cosmostat_ws_node:
|
||||
container_name: cosmostat_ws_node
|
||||
build:
|
||||
context: "{{ service_control_web_folder }}/node_server"
|
||||
dockerfile: Dockerfile
|
||||
image: ws_node:latest
|
||||
ports:
|
||||
- "{{ (docker_gateway + ':') if secure_api else '' }}3000:3000"
|
||||
networks:
|
||||
- cosmostat_net
|
||||
restart: always
|
||||
depends_on:
|
||||
- cosmostat_redis
|
||||
|
||||
cosmostat_web_dash:
|
||||
container_name: cosmostat_web_dash
|
||||
image: php:8.0-apache
|
||||
ports:
|
||||
- "{{ (docker_gateway + ':') if secure_api else '' }}8080:80"
|
||||
volumes:
|
||||
- ./html:/var/www/html/
|
||||
networks:
|
||||
- cosmostat_net
|
||||
restart: always
|
||||
|
||||
cosmostat_nginx_proxy:
|
||||
container_name: cosmostat_nginx_proxy
|
||||
image: nginx:latest
|
||||
ports:
|
||||
- "{{ (docker_gateway + ':') if secure_api else '' }}80:80"
|
||||
volumes:
|
||||
- ./proxy/nginx.conf:/etc/nginx/conf.d/default.conf
|
||||
networks:
|
||||
- cosmostat_net
|
||||
restart: always
|
||||
depends_on:
|
||||
- cosmostat_web_dash
|
||||
- cosmostat_ws_node
|
||||
|
||||
|
||||
|
||||
networks:
|
||||
cosmostat_net:
|
||||
external: true
|
||||
|
||||
|
||||
Reference in New Issue
Block a user