forked from Attendize/Attendize
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
51 lines (49 loc) · 906 Bytes
/
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
version: '3.2'
services:
web:
image: attendize_web:latest
ports:
- "8080:80"
- "8081:443"
volumes:
- .:/usr/share/nginx/html
- .:/var/www
depends_on:
- db
- maildev
- redis
- worker
env_file:
- ./.env
worker:
image: attendize_worker:latest
depends_on:
- db
- maildev
- redis
volumes:
- .:/usr/share/nginx/html
- .:/var/www
db:
image: mysql:5.7.23
restart: always
env_file:
- ./.env
environment:
MYSQL_ROOT_PASSWORD: "yes"
MYSQL_HOST: ${DB_HOST}
MYSQL_DATABASE: ${DB_DATABASE}
MYSQL_USER: ${DB_USERNAME}
MYSQL_PASSWORD: ${DB_PASSWORD}
ports:
- "3306:3306"
volumes:
- "mysql-data:/var/lib/mysql"
maildev:
image: maildev/maildev
ports:
- "1080:1080"
redis:
image: redis
volumes:
mysql-data: