-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
45 lines (42 loc) · 919 Bytes
/
docker-compose.yaml
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
services:
ioweyou:
image: ioweyou
build:
context: .
dockerfile: IOweYou/Dockerfile
ports:
- "5000:80"
environment:
- QR-CODE-API-KEY=yourqrcodekey
- SMTPHOST=yourhostname
- SMTPPORT=yourport
- SMTPUSERNAME=yourusername
- SMTPPASSWORD=yourpassword
- FROMMAILADDRESS=yourmailaddress
depends_on:
db:
condition: service_healthy
networks:
- ioweyou-network
db:
image: mysql:8.0
container_name: mysql_db
restart: always
environment:
MYSQL_ROOT_PASSWORD: example
MYSQL_DATABASE: ioweyou
ports:
- "3306:3306"
volumes:
- mysql_data:/var/lib/mysql
healthcheck:
test: [ "CMD", "mysqladmin", "ping", "-h", "localhost" ]
timeout: 20s
retries: 10
networks:
- ioweyou-network
networks:
ioweyou-network:
driver: bridge
volumes:
mysql_data: