-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
139 lines (131 loc) · 2.97 KB
/
docker-compose.yml
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
version: '3.3'
services:
web:
build: .
image: continuum_web:latest
restart: always
ports:
- 80:80 # WEB
volumes:
- ./www/:/var/www/html/
deploy:
resources:
limits:
cpus: '1.0'
memory: 400M
# reservations:
# cpus: '0.25'
# memory: 40M
# memswap_limit: 600M
env_file:
- .env
depends_on:
- mysql
- redis
- rabbitmq
mysql:
image: mysql:8.4.1
hostname: mysql
restart: always
ports:
- "3306:3306"
volumes:
- mysql-volume1:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=password
- MYSQL_DATABASE=database_example
phpmyadmin:
image: phpmyadmin/phpmyadmin:5.2.1
hostname: phpmyadmin
restart: always
links:
- mysql
ports:
- 81:80 # WEB
environment:
- PMA_ARBITRARY=1
- PMA_HOST=mysql
- PMA_USER=root
- PMA_PASSWORD=password
depends_on:
- mysql
adminer:
image: adminer:4.8.1
hostname: adminer
restart: always
links:
- mysql
ports:
- 82:8080 # WEB
environment:
- ADMINER_DEFAULT_SERVER=mysql
volumes:
- /etc/localtime:/etc/localtime
depends_on:
- mysql
# https://hub.docker.com/r/bitnami/redis/
redis:
image: bitnami/redis:7.2
hostname: redis
restart: always
# command: /opt/bitnami/scripts/redis/run.sh --maxmemory 100mb
ports:
- 6379:6379
volumes:
- redis-volume1:/bitnami/redis/data
environment:
# - ALLOW_EMPTY_PASSWORD=yes
- REDIS_PORT_NUMBER=6379
- REDIS_PASSWORD=password
# - REDIS_USERNAME=root
# - REDIS_DISABLE_COMMANDS=FLUSHDB,FLUSHALL,CONFIG
# - REDIS_IO_THREADS=4
# - REDIS_IO_THREADS_DO_READS=true
# - REDIS_AOF_ENABLED=no
# https://hub.docker.com/r/rediscommander/redis-commander
# https://github.com/joeferner/redis-commander
redis-commander:
image: rediscommander/redis-commander:latest
hostname: redis-commander
restart: always
links:
- redis
ports:
- 8081:8081 # WEB
environment:
- REDIS_HOST=redis
- REDIS_PORT=6379
- REDIS_PASSWORD=password
# - REDIS_USERNAME=user
# - HTTP_USER=user
# - HTTP_PASSWORD=password
depends_on:
- redis
# https://medium.com/xp-inc/rabbitmq-com-docker-conhecendo-o-admin-cc81f3f6ac3b
rabbitmq:
image: rabbitmq:3.13-management
hostname: rabbitmq
restart: always
ports:
- 5672:5672
- 15672:15672 # WEB
- 25676:25676
volumes:
- rabbitmq-volume1:/var/log/rabbitmq
- rabbitmq-volume2:/var/lib/rabbitmq
environment:
- RABBITMQ_DEFAULT_USER=user
- RABBITMQ_DEFAULT_PASS=password
volumes:
mysql-volume1:
driver: local
redis-volume1:
driver: local
rabbitmq-volume1:
driver: local
rabbitmq-volume2:
driver: local
#networks:
# default:
# external: true
# name: default-network