forked from islamic-network/islamic-apps-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-aladhan-api.yml
executable file
·96 lines (90 loc) · 2.06 KB
/
docker-compose-aladhan-api.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
version: '2'
services:
#######################################
# PHP application Docker container
#######################################
app:
build:
context: .
dockerfile: Dockerfile.aladhanapi
links:
- mail
- mysql
- memcached
ports:
- "8001:80"
- "8443:443"
- "10022:22"
volumes:
- ./app/:/app/
- ./:/docker/
volumes_from:
- storage
# cap and privileged needed for slowlog
cap_add:
- SYS_PTRACE
privileged: true
env_file:
- etc/environment.yml
- etc/environment.aladhanapi.yml
environment:
- VIRTUAL_HOST=.app.boilerplate.docker
- VIRTUAL_PORT=80
- POSTFIX_RELAYHOST=[mail]:1025
#######################################
# MySQL server
#######################################
mysql:
build:
context: docker/mysql/
#dockerfile: MySQL-5.6.Dockerfile
dockerfile: MySQL-5.7.Dockerfile
ports:
- 13306:3306
volumes_from:
- storage
env_file:
- etc/environment.yml
- etc/environment.aladhanapi.yml
#######################################
# Memcached
#######################################
memcached:
build:
context: docker/memcached/
volumes_from:
- storage
env_file:
- etc/environment.yml
#######################################
# Mail
#######################################
# Mailhog
mail:
image: mailhog/mailhog
# ports:
# - 8025:8025
environment:
- VIRTUAL_HOST=mail.boilerplate.docker
- VIRTUAL_PORT=8025
#######################################
# phpMyAdmin
#######################################
#phpmyadmin:
# image: phpmyadmin/phpmyadmin
# links:
# - mysql
# environment:
# - PMA_HOSTS=mysql
# - VIRTUAL_HOST=pma.boilerplate.docker
# - VIRTUAL_PORT=80
# volumes:
# - /sessions
#######################################
# Storage
#######################################
storage:
build:
context: docker/storage/
volumes:
- /storage