-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcompose.yaml
More file actions
83 lines (77 loc) · 1.32 KB
/
compose.yaml
File metadata and controls
83 lines (77 loc) · 1.32 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
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
80
81
82
83
services:
mysql:
image: mysql:8.4.3
networks:
- service
volumes:
- mysql-volume:/var/lib/mysql
- ./init/init.sql:/docker-entrypoint-initdb.d
environment:
MYSQL_ROOT_PASSWORD: root5479
MYSQL_DATABASE: root
restart: always
deploy:
resources:
limits:
cpus: '0.3'
memory: 512M
redis:
image: redis:latest
networks:
- service
next:
build:
context: ./front
dockerfile: Dockerfile
networks:
- service
restart: always
deploy:
replicas: 1
resources:
limits:
cpus: '0.3'
memory: 512M
expose:
- 3000
was:
build:
context: .
dockerfile: Dockerfile
networks:
- service
restart: always
deploy:
replicas: 1
resources:
limits:
cpus: '0.2'
memory: 512M
depends_on:
- mysql
- redis
env_file:
- .env.prod
expose:
- 5479
web:
image: nginx
ports:
- "80:80"
networks:
- service
volumes:
- ./default.conf:/etc/nginx/conf.d/default.conf
restart: always
deploy:
resources:
limits:
cpus: '0.2'
memory: 128M
depends_on:
- was
- next
networks:
service:
volumes:
mysql-volume: