-
Notifications
You must be signed in to change notification settings - Fork 20
/
docker-compose.yml
73 lines (69 loc) · 1.7 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
68
69
70
71
72
73
services:
mysql:
image: metakgporg/wiki-db
container_name: wiki-db
build: "./mysql"
restart: always
networks:
mysql-network:
aliases:
- mysql-docker
volumes:
- db-volume:/var/lib/mysql
environment:
- MYSQL_RANDOM_ROOT_PASSWORD=true
- MYSQL_DATABASE=metakgp_wiki_db
- MYSQL_USER=metakgp_user
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
mediawiki:
image: metakgporg/wiki
container_name: wiki
build: "./mediawiki"
restart: always
networks:
mysql-network:
mediawiki-network:
aliases:
- mediawiki-docker
volumes:
- mediawiki-volume:/srv/mediawiki
- static-volume:/srv/static
environment:
- MAILGUN_EMAIL=$MAILGUN_EMAIL
- MAILGUN_PASSWORD=$MAILGUN_PASSWORD
- GOOGLE_ANALYTICS_ACCOUNT=$GOOGLE_ANALYTICS_ACCOUNT
- WG_SECRET_KEY=$WG_SECRET_KEY
- SITE_UPGRADE_KEY=$SITE_UPGRADE_KEY
- MYSQL_PASSWORD=$MYSQL_PASSWORD
- SERVER_NAME=$SERVER_NAME
- SLACK_CHANGES_WH_URL=$SLACK_CHANGES_WH_URL
- DEV=$DEV
nginx:
image: metakgporg/wiki-nginx
container_name: wiki-nginx
build: "./nginx"
restart: always
networks:
metaploy-network:
aliases:
- metawiki
mediawiki-network:
volumes:
- mediawiki-volume:/srv/mediawiki
- static-volume:/srv/static
- nginx-config-volume:/etc/nginx/sites-enabled
environment:
- DEV=$DEV
networks:
mysql-network:
mediawiki-network:
metaploy-network:
external: true
name: metaploy-network
volumes:
mediawiki-volume:
db-volume:
static-volume:
nginx-config-volume:
external: true
name: metaploy-nginx-config-volume