docker-compose.yml
788 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
version: '2'
services:
web:
image: nginx:latest
ports:
- 8080:80
volumes:
- ./site.conf:/etc/nginx/conf.d/default.conf
volumes_from:
- flarum
links:
- flarum
networks:
- docker_flarum
- nginx_web
flarum:
build: flarum/
volumes:
- ./flarum/html:/var/www/html
# ports:
# - "9003:9000"
networks:
- docker_flarum
mariadb:
build: mariadb/
environment:
- MYSQL_ROOT_PASSWORD=root_password
- MYSQL_DATABASE=flarum
- MYSQL_USER=flarum
- MYSQL_PASSWORD=flarum
volumes:
- ./mariadb/database:/var/lib/mysql
# ports:
# - "3306:3306"
networks:
- docker_flarum
networks:
nginx_web:
external: true
docker_flarum:
driver: bridge