-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
67 lines (61 loc) · 1.57 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
version: '3.7'
services:
nginx:
container_name: ${PROJECT_TAG}_nginx
image: nginx:alpine
restart: always
ports:
- ${NGINX_PORT}:80
- ${NGINX_HTTPS_PORT}:443
volumes:
- ./joomla:/var/www/html
- ./docker/nginx.conf:/etc/nginx/nginx.conf:ro
- ./docker/certbot/www/:/var/www/certbot/:ro
- ./docker/certbot/conf/:/etc/nginx/ssl/:ro
depends_on:
- mariadb
- joomla
certbot:
container_name: ${PROJECT_TAG}_certbot
image: certbot/certbot:latest
volumes:
- ./docker/certbot/www/:/var/www/certbot/:rw
- ./docker/certbot/conf/:/etc/letsencrypt/:rw
joomla:
container_name: ${PROJECT_TAG}_joomla
restart: always
build:
context: ./
dockerfile: ./docker/Dockerfile
args:
LOCAL_USER_ID: $UID
LOCAL_GROUP_ID: $GID
volumes:
- ./joomla:/var/www/html
- ./docker/joomla_php.ini:/usr/local/etc/php/conf.d/joomla_php.ini
depends_on:
- mariadb
mariadb:
container_name: ${PROJECT_TAG}_maria
restart: always
image: mariadb:11.2
ports:
- ${MARIADB_PORT}:3306
environment:
- MARIADB_ALLOW_EMPTY_ROOT_PASSWORD=${MARIADB_ALLOW_EMPTY_ROOT_PASSWORD}
- MARIADB_USER=${MARIADB_USER}
- MARIADB_PASSWORD=${MARIADB_PASSWORD}
- MARIADB_DATABASE=${MARIADB_DATABASE}
volumes:
- database:/var/lib/mysql
adminer:
container_name: ${PROJECT_TAG}_adminer
image: adminer
restart: always
ports:
- ${ADMINER_PORT}:8080
depends_on:
- mariadb
volumes:
database:
name: database_viva