fix: VPN build, caching, Dockerfile fixes for Iran network
Deploy Canina / deploy (push) Failing after 12s
Deploy Canina / deploy (push) Failing after 12s
This commit is contained in:
1 parent
027f169830
commit
e4c196b080
5 files changed
+431
-107
No files matched your search
+46
-52
@@ -1,75 +1,69 @@
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
db:
|
||||
image: docker.arvancloud.ir/library/postgres:16-alpine
|
||||
container_name: canino_db
|
||||
db_stage:
|
||||
image: postgres:16-alpine
|
||||
container_name: canino_db_stage
|
||||
restart: always
|
||||
environment:
|
||||
POSTGRES_USER: canino
|
||||
POSTGRES_PASSWORD: caninopassword
|
||||
POSTGRES_DB: caninodb
|
||||
ports:
|
||||
- "5433:5432"
|
||||
POSTGRES_USER: canino_stage
|
||||
POSTGRES_PASSWORD: caninopassword_stage
|
||||
POSTGRES_DB: caninodb_stage
|
||||
volumes:
|
||||
- postgres_data:/var/lib/postgresql/data
|
||||
- canina_stage_db:/var/lib/postgresql/data
|
||||
networks:
|
||||
- traefik_public
|
||||
|
||||
redis:
|
||||
image: docker.arvancloud.ir/library/redis:7-alpine
|
||||
container_name: canino_redis
|
||||
redis_stage:
|
||||
image: redis:7-alpine
|
||||
container_name: canino_redis_stage
|
||||
restart: always
|
||||
ports:
|
||||
- "16379:6379"
|
||||
networks:
|
||||
- traefik_public
|
||||
|
||||
backend:
|
||||
build:
|
||||
backend_stage:
|
||||
build:
|
||||
context: ./backend
|
||||
dockerfile: Dockerfile
|
||||
container_name: canino_backend
|
||||
container_name: canino_backend_stage
|
||||
restart: always
|
||||
environment:
|
||||
- DATABASE_URL=postgresql://canino:caninopassword@db:5432/caninodb?schema=public
|
||||
- REDIS_HOST=redis
|
||||
- DATABASE_URL=postgresql://canino_stage:caninopassword_stage@db_stage:5432/caninodb_stage?schema=public
|
||||
- REDIS_HOST=redis_stage
|
||||
- REDIS_PORT=6379
|
||||
- PORT=3000
|
||||
ports:
|
||||
- "3000:3000"
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.canina-api-stage.rule=Host(`stageapi.canina.ir`) || Host(`api.caninastage.parsaaghayi.ir`)"
|
||||
- "traefik.http.routers.canina-api-stage.entrypoints=websecure"
|
||||
- "traefik.http.routers.canina-api-stage.tls=true"
|
||||
- "traefik.http.services.canina-api-stage.loadbalancer.server.port=3000"
|
||||
depends_on:
|
||||
- db
|
||||
- redis
|
||||
- db_stage
|
||||
- redis_stage
|
||||
networks:
|
||||
- traefik_public
|
||||
|
||||
frontend:
|
||||
frontend_stage:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
container_name: canino_frontend
|
||||
container_name: canino_frontend_stage
|
||||
restart: always
|
||||
ports:
|
||||
- "3001:8080"
|
||||
depends_on:
|
||||
- backend
|
||||
|
||||
prometheus:
|
||||
image: docker.arvancloud.ir/prom/prometheus:v2.51.0
|
||||
container_name: canino_prometheus
|
||||
restart: always
|
||||
volumes:
|
||||
- ./prometheus.yml:/etc/prometheus/prometheus.yml
|
||||
ports:
|
||||
- "9090:9090"
|
||||
depends_on:
|
||||
- backend
|
||||
|
||||
grafana:
|
||||
image: docker.arvancloud.ir/grafana/grafana:10.4.1
|
||||
container_name: canino_grafana
|
||||
restart: always
|
||||
ports:
|
||||
- "3002:3000"
|
||||
environment:
|
||||
- GF_SECURITY_ADMIN_PASSWORD=admin
|
||||
- NEXT_PUBLIC_API_URL=http://backend_stage:3000
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.canina-stage.rule=Host(`stage.canina.ir`) || Host(`stageadmin.canina.ir`) || Host(`caninastage.parsaaghayi.ir`)"
|
||||
- "traefik.http.routers.canina-stage.entrypoints=websecure"
|
||||
- "traefik.http.routers.canina-stage.tls=true"
|
||||
- "traefik.http.services.canina-stage.loadbalancer.server.port=8080"
|
||||
depends_on:
|
||||
- prometheus
|
||||
- backend_stage
|
||||
networks:
|
||||
- traefik_public
|
||||
|
||||
networks:
|
||||
traefik_public:
|
||||
external: true
|
||||
|
||||
volumes:
|
||||
postgres_data:
|
||||
canina_stage_db:
|
||||
Reference in new issue
Block a user