-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
68 lines (62 loc) · 1.98 KB
/
docker-compose.yml
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
version: "3.7"
services:
back_blue:
image: gitlab.praktikum-services.ru:5050/d.ponizovskiy/sausage-store/sausage-backend:${BACKEND_VERSION}
restart: unless-stopped
expose:
- "8080"
healthcheck:
test: curl --fail -s http://localhost:8080/actuator/health
interval: 30s
timeout: 10s
start_period: 20s
retries: 10
environment:
SPRING_DATASOURCE_USERNAME: ${SPRING_DATASOURCE_USERNAME}
SPRING_DATASOURCE_PASSWORD: ${SPRING_DATASOURCE_PASSWORD}
SPRING_DATASOURCE_URL: ${SPRING_DATASOURCE_URL}
SPRING_FLYWAY_BASELINE-ON-MIGRATE: "true"
VIRTUAL_HOST: backend
networks:
- sausage-store
back_green:
image: gitlab.praktikum-services.ru:5050/d.ponizovskiy/sausage-store/sausage-backend:${BACKEND_VERSION}
restart: unless-stopped
expose:
- "8080"
healthcheck:
test: curl --fail -s http://localhost:8080/actuator/health
interval: 30s
timeout: 10s
start_period: 20s
retries: 10
environment:
SPRING_DATASOURCE_USERNAME: ${SPRING_DATASOURCE_USERNAME}
SPRING_DATASOURCE_PASSWORD: ${SPRING_DATASOURCE_PASSWORD}
SPRING_DATASOURCE_URL: ${SPRING_DATASOURCE_URL}
SPRING_FLYWAY_BASELINE-ON-MIGRATE: "true"
VIRTUAL_HOST: backend
networks:
- sausage-store
backend-report:
image: gitlab.praktikum-services.ru:5050/d.ponizovskiy/sausage-store/backend-report:${BACKEND_REPORT_VERSION}
container_name: sausage-store-backend-report
restart: unless-stopped
environment:
DB: ${SPRING_DATA_MONGODB_URI}
networks:
- sausage-store
loadbalancer:
image: gitlab.praktikum-services.ru:5050/d.ponizovskiy/sausage-store/sausage-frontend:${FRONTEND_VERSION}
container_name: sausage-store-frontend
restart: unless-stopped
ports:
- "80:80"
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
environment:
DEFAULT_HOST: backend
networks:
- sausage-store
networks:
sausage-store: