-
-
Notifications
You must be signed in to change notification settings - Fork 241
/
docker-compose.yml
47 lines (45 loc) · 1.07 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
version: "3.3"
volumes:
mysql_data:
services:
sqldb:
image: mysql:5.7
container_name: helper-mysql
volumes:
- mysql_data:/var/lib/mysql
environment:
- MYSQL_DATABASE=helper
- MYSQL_USER=helper
- MYSQL_PASSWORD=helper
- MYSQL_ROOT_PASSWORD=helper
command: --default-storage-engine innodb
restart: unless-stopped
healthcheck:
test: mysqladmin -p$$MYSQL_ROOT_PASSWORD ping -h localhost
interval: 20s
start_period: 10s
timeout: 10s
retries: 3
helper:
image: eloufirhatim/helper:latest
container_name: helper-server
environment:
- DB_CONNECTION=mysql
- DB_HOST=sqldb
- DB_PORT=3306
- DB_DATABASE=helper
- DB_USERNAME=helper
- DB_PASSWORD=helper
- MAIL_MAILER=smtp
- MAIL_HOST=smtp.mailtrap.io
- MAIL_PORT=2525
- MAIL_USERNAME=your_username
- MAIL_PASSWORD=your_password
- MAIL_ENCRYPTION=tls
depends_on:
- sqldb
restart: "no"
ports:
- 8000:8000
volumes:
- /etc/localtime:/etc/localtime