-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathdocker-compose.stage.yaml
64 lines (59 loc) · 1.65 KB
/
docker-compose.stage.yaml
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
version: '3.3'
volumes:
postgres_data_stage:
static_value:
tasks:
services:
postgres:
image: postgres:13.2
container_name: postgres_stage
restart: always
volumes:
- postgres_data_stage:/var/lib/postgresql/data/
ports:
- "6100:6100"
command: -p 6100
env_file:
- .env
backend:
image: ghcr.io/studio-yandex-practicum/lomaya_baryery_backend:latest
container_name: lomaya_baryery_backend
restart: always
depends_on:
- postgres
volumes:
- static_value:/LOMAYA_BARYERY_BACKEND/src/templates/registration/
- ./static/user_reports:/LOMAYA_BARYERY_BACKEND/static/user_reports/
- tasks:/LOMAYA_BARYERY_BACKEND/static/tasks/
- ./logs:/LOMAYA_BARYERY_BACKEND/logs/
env_file:
- .env
frontend:
image: ghcr.io/studio-yandex-practicum/lomaya_baryery_frontend:latest
container_name: lomaya_baryery_frontend
volumes:
- ./frontend/:/app/result_build/
swag:
image: linuxserver/swag
container_name: swag
restart: unless-stopped
cap_add:
- NET_ADMIN
environment:
- URL=xn--b1afnsoec8e.xn--90a0am.xn--80aacr0agnub4ii6a.xn--p1ai
- VALIDATION=http
ports:
- "443:443"
- "80:80"
depends_on:
- backend
- frontend
volumes:
- static_value:/var/html/static/
- ./nginx/default.conf:/config/nginx/site-confs/default.conf
- ./fail2ban/jail.local:/config/fail2ban/jail.local
- ./static/user_reports:/var/html/user_reports/
- tasks:/var/html/tasks/
- ./frontend/:/var/html/frontend/
env_file:
- .env