forked from maidstone-hackspace/maidstone-hackspace
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
50 lines (45 loc) · 1.35 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
version: '2'
services:
mhackspace_uwsgi:
image: olymk2/mhackspace
restart: unless-stopped
network_mode: bridge
links:
- mariadb:mariadb
- mhackspace_web:nginx
- mhackspace_mail:mail_server
volumes:
- sockets:/data/sockets
- ./website/:/var/www
- ./config/uwsgi/maidstone-hackspace.org.uk.ini:/etc/uwsgi/apps-enabled/maidstone-hackspace.org.uk.ini
mhackspace_web:
image: olymk2/nginx
restart: unless-stopped
network_mode: bridge
dns:
- 8.8.8.8
- 8.8.4.4
volumes:
- ./website/:/var/www
- sockets:/data/sockets
- /etc/ssl/certs/:/etc/ssl/certs/
- ./config/nginx/docker-maidstone-hackspace.org.uk:/etc/nginx/sites-enabled/docker-maidstone-hackspace.org.uk
restart: always
mariadb:
image: mariadb
network_mode: bridge
ports:
- "3300:3306"
environment:
MYSQL_DATABASE: maidstone_hackspace
MYSQL_USER: mhackspace
MYSQL_PASSWORD: mhackspace
MYSQL_ROOT_PASSWORD: mhackspace
restart: unless-stopped
mhackspace_mail:
image: mailhog/mailhog
network_mode: bridge
restart: unless-stopped
volumes:
sockets:
driver: local