59 lines
1.2 KiB
YAML
59 lines
1.2 KiB
YAML
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:18.3-alpine3.23
|
|
container_name: pgsql
|
|
restart: unless-stopped
|
|
ports:
|
|
- "8091:5432"
|
|
environment:
|
|
POSTGRES_DB: ${POSTGRES_DB}
|
|
POSTGRES_USER: ${POSTGRES_USER}
|
|
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
|
|
volumes:
|
|
- payment-db:/var/lib/postgresql/data
|
|
networks:
|
|
- payment
|
|
|
|
backend:
|
|
build:
|
|
context: ${BACKEND_PATH}
|
|
dockerfile: Dockerfile
|
|
container_name: laravel
|
|
tty: true
|
|
restart: unless-stopped
|
|
ports:
|
|
- "9000:9000"
|
|
volumes:
|
|
- ${BACKEND_PATH}:/var/www/${PROJECT_NAME}
|
|
depends_on:
|
|
- postgres
|
|
networks:
|
|
- payment
|
|
|
|
volumes:
|
|
payment-db:
|
|
driver: local
|
|
|
|
networks:
|
|
payment:
|
|
driver: bridge |