forked from novafacing/mellivora
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
63 lines (59 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
63
version: '3'
services:
nginx:
build: ./nginx
env_file:
- ./config.env
volumes:
- ./nginx_ssl:/etc/nginx/ssl
- ./certbot_certs:/etc/letsencrypt
- ./certbot_www:/var/www/certbot/${DOMAIN}
- ./html:/var/www/html/${DOMAIN}
ports:
- "80:80"
restart: always
certbot:
build: ./certbot
env_file:
- ./config.env
volumes:
- ./certbot_certs:/etc/letsencrypt
- ./certbot_www:/var/www/certbot/${DOMAIN}
depends_on:
- nginx
mellivora:
image: mellivora
build:
context: .
dockerfile: Dockerfile
args:
DOMAIN: ${DOMAIN}
env_file:
- ./config.env
ports:
- "443:443"
volumes:
- ./certbot_certs:/etc/nginx/ssl/
links:
- db
depends_on:
- db
- nginx
- certbot
db:
image: mysql:5.6
ports:
- 13306:3306
env_file:
- ./config.env
volumes:
- dbdata:/var/lib/mysql
- ./install/sql:/docker-entrypoint-initdb.d
adminer:
image: adminer
restart: always
ports:
- 18080:8080
volumes:
composerdependencies:
dbdata: