-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
49 lines (43 loc) · 1.17 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
services:
app:
image: "registry.gitlab.com/fun-tech/fundraising-frontend-docker:latest"
volumes:
- ./matomo:/var/www/html
- ../CampaignVisitorsByTime:/var/www/html/plugins/CampaignVisitorsByTime
working_dir: /var/www/html
cron:
image: "registry.gitlab.com/fun-tech/fundraising-frontend-docker:latest"
volumes_from:
- app
entrypoint: |
bash -c 'bash -s <<EOF
trap "break;exit" SIGHUP SIGINT SIGTERM
while /bin/true; do
su -s "/bin/bash" -c "/usr/local/bin/php /var/www/html/console core:archive" www-data
sleep ${CRON_RUNTIME_SECONDS}
done
EOF'
web:
image: nginx
ports:
- "${HOST_PORT}:80"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
- ./static_test.html:/var/www/html/static_test.html
volumes_from:
- app
environment:
- VIRTUAL_HOST
db:
image: mariadb:10.6
volumes:
- db-storage:/var/lib/mysql
# If you have a database dump, put it here
- ./mysql/data:/docker-entrypoint-initdb.d
environment:
- MYSQL_ROOT_PASSWORD
- MYSQL_DATABASE
- MYSQL_USER
- MYSQL_PASSWORD
volumes:
db-storage: