-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
69 lines (65 loc) · 2.09 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
version: "3.3"
services:
mysql:
image: mysql:5.7
restart: always
container_name: mysql
ports:
- "3306:3306"
expose:
- "3306"
volumes:
- /opt/mysql:/var/lib/mysql
environment:
MYSQL_DATABASE: tronica_blog
MYSQL_USER: tronica
MYSQL_ROOT_PASSWORD: ${DB_ROOT_PASSWORD}
MYSQL_PASSWORD: ${DB_PASSWORD}
ghost:
image: patrixr/tronica:latest
restart: always
ports:
- "2368:2368"
environment:
VIRTUAL_HOST: "tronica.io,www.tronica.io,blog.tronica.io"
VIRTUAL_PORT: "2368"
LETSENCRYPT_HOST: "tronica.io,www.tronica.io,blog.tronica.io"
LETSENCRYPT_EMAIL: "[email protected]"
AWS_ACCESS_KEY_ID: ${AWS_ACCESS_KEY_ID}
AWS_SECRET_ACCESS_KEY: ${AWS_SECRET_ACCESS_KEY}
AWS_DEFAULT_REGION: ${AWS_DEFAULT_REGION}
GHOST_STORAGE_ADAPTER_S3_PATH_BUCKET: ${GHOST_STORAGE_ADAPTER_S3_PATH_BUCKET}
GHOST_STORAGE_ADAPTER_S3_ENDPOINT: ${GHOST_STORAGE_ADAPTER_S3_ENDPOINT}
GHOST_STORAGE_ADAPTER_S3_ASSET_HOST: ${GHOST_STORAGE_ADAPTER_S3_ASSET_HOST}
database__client: mysql
database__connection__host: mysql
database__connection__user: tronica
database__connection__password: ${DB_PASSWORD}
database__connection__database: tronica_blog
depends_on:
- mysql
nginx-proxy:
image: jwilder/nginx-proxy
container_name: nginx-proxy
restart: always
labels:
- "com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy"
ports:
- "80:80"
- "443:443"
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
- /opt/nginx/certs:/etc/nginx/certs
- /opt/nginx/vhost.d:/etc/nginx/vhost.d
- /opt/nginx/html:/usr/share/nginx/html
letsencrypt:
image: jrcs/letsencrypt-nginx-proxy-companion
restart: always
environment:
NGINX_PROXY_CONTAINER: nginx-proxy
DEFAULT_EMAIL: "[email protected]"
volumes:
- /opt/nginx/vhost.d:/etc/nginx/vhost.d
- /opt/nginx/certs:/etc/nginx/certs:rw
- /var/run/docker.sock:/var/run/docker.sock:ro
- /opt/nginx/html:/usr/share/nginx/html