This repository was archived by the owner on Jan 11, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
56 lines (51 loc) · 1.59 KB
/
docker-compose.yml
File metadata and controls
56 lines (51 loc) · 1.59 KB
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
version: '3'
services:
nginx:
image: nginx:latest
container_name: nginx
restart: always
ports:
- '80:80'
- '443:443'
volumes:
- ./etc/nginx/conf/nginx.conf:/etc/nginx/nginx.conf
- ./etc/nginx/ssl:/etc/nginx/ssl
- ./etc/nginx/log:/var/log/nginx
- ./wiki:/var/www/html/wiki
- ./site/public/stylesheets:/var/www/html/site/public/stylesheets
- ./site/public/images:/var/www/html/site/public/images
node:
image: node:latest
container_name: node
restart: always
ports:
- "127.0.0.1:3000:3000"
command: bash -c "cd /var/www/html/site && npm install && npm update && npm start"
volumes:
- ./site:/var/www/html/site
mediawiki: # Optional, comment this section out if unwanted.
image: mediawiki:latest
container_name: mediawiki
restart: always
ports:
- "127.0.0.1:9000:80"
volumes:
- ./etc/wiki/LocalSettings.php:/var/www/html/LocalSettings.php # MediaWiki config is located in etc
- ./wiki/images:/var/www/html/images
- ./wiki:/var/www/html
phpmyadmin: # Optional, comment this section out if unwanted.
image: phpmyadmin/phpmyadmin:latest
container_name: phpmyadmin
restart: always
environment:
- HIDE_PHP_VERSION=true
- UPLOAD_LIMIT=10485760
- PMA_HOST=mariadb
ports:
- "4000:80"
volumes:
- ./etc/phpmyadmin/config.inc.php:/var/www/html/config.inc.php # PHPMyAdmin config is located in etc
networks: # Required for connectivity with seperate docker-compose web framework
default:
external:
name: database