-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.green.yml
More file actions
43 lines (41 loc) · 1.31 KB
/
docker-compose.green.yml
File metadata and controls
43 lines (41 loc) · 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Green deployment - frontend only (postgres/redis started by ensure-infrastructure)
# Used by deploy-smart.sh for blue/green deployment
services:
frontend:
build:
context: ./web
dockerfile: Dockerfile
container_name: db-server-frontend-green
ports:
- "127.0.0.1:3392:3390"
env_file:
- .env
environment:
- PORT=3390
- AUTH_SERVICE_URL=${AUTH_SERVICE_URL:-http://auth-microservice:3370}
- AUTH_SERVICE_PUBLIC_URL=${AUTH_SERVICE_PUBLIC_URL:-https://auth.alfares.cz}
- DB_SERVER_POSTGRES_HOST=db-server-postgres
- DB_SERVER_PORT=${DB_SERVER_PORT:-5432}
- DB_SERVER_ADMIN_USER=${DB_SERVER_ADMIN_USER:-dbadmin}
- DB_SERVER_ADMIN_PASSWORD=${DB_SERVER_ADMIN_PASSWORD}
- DB_SERVER_INIT_DB=${DB_SERVER_INIT_DB:-postgres}
- DB_SERVER_REDIS_HOST=db-server-redis
- REDIS_SERVER_PORT=${REDIS_SERVER_PORT:-6379}
networks:
- nginx-network
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://127.0.0.1:3390/health"]
interval: 10s
timeout: 5s
retries: 2
deploy:
resources:
limits:
memory: 256M
reservations:
memory: 64M
networks:
nginx-network:
external: true
name: ${NGINX_NETWORK_NAME:-nginx-network}