-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathdocker-compose.yml
62 lines (62 loc) · 1.13 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
version: '3.1'
services:
database:
image: mariadb:latest
volumes:
- database:/var/lib/mysql
- ./docker/my.cnf:/etc/mysql/conf.d/my.cnf:z
restart: always
ports:
- 3306:3306
networks:
edidtv:
aliases:
- database
environment:
- MYSQL_DATABASE=edidtv
- MYSQL_USER=edidtv
- MYSQL_PASSWORD=edidtv
- MYSQL_RANDOM_ROOT_PASSWORD=yes
httpd:
image: nginx:alpine
ports:
- 80:80
volumes:
- ./docker/edidtv.nginx:/etc/nginx/conf.d/default.conf:z
networks:
edidtv:
aliases:
- httpd
depends_on:
- site
site:
build: .
volumes:
- ./docker/settings.py:/opt/edidtv/private/settings.py:z
networks:
edidtv:
aliases:
- site
depends_on:
- database
- smtpd
entrypoint:
- wait-for
- database:3306
- -t
- "180"
- --
- /bin/sh
- entrypoint.sh
smtpd:
build: ./docker/exim
hostname: mail.edid.tv
networks:
edidtv:
aliases:
- smtpd
networks:
edidtv:
driver: bridge
volumes:
database: