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:
|
||||
@@ -22,13 +42,9 @@ services:
|
||||
tty: true
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "8003:80"
|
||||
- "443:443"
|
||||
- "443:443/udp"
|
||||
- "9000:9000"
|
||||
volumes:
|
||||
- ${BACKEND_PATH}:/var/www/${PROJECT_NAME}
|
||||
# - caddy_data:/data
|
||||
# - caddy_config:/config
|
||||
depends_on:
|
||||
- postgres
|
||||
networks:
|
||||
|
||||
Reference in New Issue
Block a user