use nginx and php-fpm for docker
This commit is contained in:
@@ -1,6 +1,26 @@
|
||||
services:
|
||||
nginx:
|
||||
image: docker.arvancloud.ir/nginx:stable-alpine3.23-perl
|
||||
container_name: nginx
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "80:80"
|
||||
volumes:
|
||||
- ./nginx/payment.conf:/etc/nginx/conf.d/default.conf
|
||||
- ${BACKEND_PATH}:/var/www/${PROJECT_NAME}
|
||||
networks:
|
||||
- payment
|
||||
|
||||
redis:
|
||||
image: docker.arvancloud.ir/redis:8.6.0-alpine3.23
|
||||
container_name: redis
|
||||
restart: unless-stopped
|
||||
tty: true
|
||||
networks:
|
||||
- payment
|
||||
|
||||
postgres:
|
||||
image: docker.arvancloud.ir/postgres:17.8-alpine3.23
|
||||
image: docker.arvancloud.ir/postgres:18.3-alpine3.23
|
||||
container_name: pgsql
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
@@ -26,15 +46,8 @@ services:
|
||||
container_name: laravel
|
||||
tty: true
|
||||
restart: unless-stopped
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost:80"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
ports:
|
||||
- "8003:80"
|
||||
- "443:443"
|
||||
- "443:443/udp"
|
||||
- "80:80"
|
||||
volumes:
|
||||
- ${BACKEND_PATH}:/var/www/${PROJECT_NAME}
|
||||
depends_on:
|
||||
|
||||
Reference in New Issue
Block a user