-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
68 lines (64 loc) · 1.13 KB
/
compose.yaml
File metadata and controls
68 lines (64 loc) · 1.13 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
services:
mysql:
image: mysql:8.3.0
networks:
- service
expose:
- 3306
volumes:
- mysql-volume-project:/var/lib/mysql
- ./init/init.sql:/docker-entrypoint-initdb.d
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: dorikkiri
restart: always
deploy:
resources:
limits:
cpus: '0.3'
memory: 512M
redis:
image: redis:latest
networks:
- service
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:
- 8080
networks:
service:
volumes:
mysql-volume-project:
# 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