forked from codezi/xenforo2_docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
47 lines (46 loc) · 1.2 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
version: '3.3'
services:
nginx:
build:
context: ./
dockerfile: nginx.dockerfile
ports:
- "8023:80" # HTTP Port
- "9023:443" # HTTPS Port
volumes_from:
- php
volumes:
- ./.config/nginx/conf.d:/etc/nginx/conf.d:ro
- ./.data/nginx:/var/log/nginx
links:
- php
certbot:
image: certbot/certbot
volumes:
- ./certbot/www/:/var/www/certbot/:rw
- ./certbot/conf/:/etc/letsencrypt/:rw
php:
build:
context: ./
dockerfile: php80.dockerfile # availables php72.dockerfile php80.dockerfile php81.dockerfile
volumes:
- ./xenforo:/var/www/html
- ./addons:/var/www/html/src/addons
- ./xenforo/src/addons/XF:/var/www/html/src/addons/XF
- ./.data/xenforo/internal:/var/www/html/internal_data
- ./.data/xenforo/external:/var/www/html/data
- ./.data/composer:/root/.composer
- ./certbot/www:/var/www/certbot/:ro
- ./certbot/conf/:/etc/nginx/ssl/:ro
links:
- mariadb
env_file:
- .env
mariadb:
image: mariadb:10.6.3
volumes:
- ./.data/mariadb:/var/lib/mysql
env_file:
- .env
ports:
- "33069:3306" # change port 33069 to any other port