-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
54 lines (47 loc) · 1023 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
52
53
54
version: '3.7'
services:
joomla:
build: ./joomla
image: joomla_data
volumes:
- joomla_data:/var/www/joomla
mariadb:
image: mariadb:10.5
env_file:
- mariadb/.env
volumes:
- /opt/docker/volumes/mariadb:/var/lib/mysql
- /opt/docker/volumes/joomla_logs/mariadb:/var/log/mysql
expose:
- '3306'
networks:
- joomla
nginx:
build: ./nginx-ssl
image: joomla_front_ssl
volumes:
- joomla_data:/var/www/joomla
- /opt/docker/volumes/joomla_logs/nginx/:/var/log/nginx
- nginx_secrets:/etc/letsencrypt
ports:
- 80:80
- 443:443
env_file:
- ./nginx-ssl/nginx-certbot.env
networks:
- joomla
php:
build: ./php
image: joomla_back
volumes:
- joomla_data:/var/www/joomla
- /opt/docker/volumes/joomla_logs/php-fpm/:/var/log/php-fpm/errors.logs
expose:
- '9000'
networks:
- joomla
volumes:
joomla_data:
nginx_secrets:
networks:
joomla: