forked from SpaceSoft-nn/QR-Backend-GraphQL-Service
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-composeСopy.yml
More file actions
54 lines (47 loc) · 1.05 KB
/
docker-composeСopy.yml
File metadata and controls
54 lines (47 loc) · 1.05 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
44
45
46
47
48
49
50
51
52
services:
nginx:
image: nginx:latest
volumes:
- ./:/var/www
- ./_docker/nginx/conf.d/:/etc/nginx/conf.d/
- /etc/letsencrypt/:/etc/letsencrypt/
ports:
- "80:80"
- "443:443"
depends_on:
- app
container_name: qr_nginx
app:
# network_mode: "host"
build:
context: .
dockerfile: _docker/app/DockerFile
volumes:
- ./:/var/www
container_name: qr_laravel
depends_on:
- db
- redis
redis:
image: redis:latest
restart: always
ports:
- "6379:6379"
command: redis-server --appendonly yes --requirepass "${REDIS_PASSWORD}"
volumes:
- ./tmp/redis:/data
container_name: qr_redis
db:
image: postgres:latest
restart: always
environment:
POSTGRES_DB: lardocker
POSTGRES_USER: postgres
POSTGRES_PASSWORD: root
volumes:
- db_data:/var/lib/postgresql/data # Указываем volume для хранения данных
ports:
- 8101:5432
container_name: qr_postgres
volumes:
db_data: {}