-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
52 lines (48 loc) · 969 Bytes
/
docker-compose.yml
File metadata and controls
52 lines (48 loc) · 969 Bytes
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
services:
web:
build:
context: ./web
args:
- LOCAL_USER_ID=1000
- LOCAL_GROUP_ID=1000
container_name: xfdev
networks:
- bridgenet
links:
- "db"
depends_on:
- db
volumes:
- ./web/xenforo/:/var/www/html/
- ./web/config.php:/var/www/html/src/config.php
ports:
- "80:80"
- "443:443"
user: xenforo:xenforo
environment:
- APACHE_RUN_USER=xenforo
- APACHE_RUN_GROUP=xenforo
db:
image: mysql:latest
container_name: xfdb
networks:
- bridgenet
ports:
- "3306:3306"
volumes:
- xfdb-data:/var/lib/mysql
environment:
- MYSQL_RANDOM_ROOT_PASSWORD=yes
- MYSQL_DATABASE=xf2
- MYSQL_USER=xenforo
- MYSQL_PASSWORD=xfdev
volumes:
xfdb-data: {}
networks:
bridgenet:
driver: bridge
ipam:
driver: default
config:
- subnet: 172.24.0.0/16
gateway: 172.24.0.1