-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
79 lines (73 loc) · 1.56 KB
/
docker-compose.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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
version: "3"
services:
db:
image: postgres:16.3
platform: linux/amd64
container_name: iam-db
env_file:
- inf/Docker/postgres/.environment
ports:
- "40532:5432"
volumes:
- auth_postgis_data:/var/lib/postgresql
- auth_dbbackups:/backups
- auth_postgres_data:/var/lib/postgresql/data/
cache:
build:
context: ./inf/Docker/redis
dockerfile: Dockerfile
container_name: iam-cache
environment:
- inf/Docker/redis/.environment
ports:
- "61709:6379"
volumes:
- redis_data:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 30s
timeout: 10s
retries: 3
networks:
- redis_net
restart: unless-stopped
backend:
container_name: iam-backend
build:
context: .
dockerfile: inf/Docker/backend/Dockerfile
depends_on:
- db
- cache
env_file:
- .env
volumes:
- ./:/app/
networks:
- redis_net
nginx:
container_name: iam-nginx
image: nginx:1.25.1-alpine
ports:
- "80:80"
- "443:443"
volumes:
- static_volume:/statics
- media_volume:/media
- ./inf/Docker/nginx/nginx.conf:/etc/nginx/nginx.conf:ro
- ./inf/Docker/nginx/cert:/cert
- /etc/letsencrypt:/etc/letsencrypt
- /var/lib/letsencrypt:/var/lib/letsencrypt
depends_on:
- backend
restart: always
networks:
redis_net:
driver: bridge
volumes:
auth_postgis_data:
auth_dbbackups:
auth_postgres_data:
redis_data:
static_volume:
media_volume: