Skip to content

Commit

Permalink
add docker compose config
Browse files Browse the repository at this point in the history
  • Loading branch information
Ubuntu committed Dec 26, 2020
1 parent e6834c6 commit ea2b560
Show file tree
Hide file tree
Showing 2 changed files with 80 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -102,3 +102,5 @@ dist

# TernJS port file
.tern-port

.env
78 changes: 78 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
version: '3.8'
services:

nginx-proxy:
image: jwilder/nginx-proxy
container_name: nginx-proxy
network_mode: bridge
ports:
- 80:80
- 443:443
volumes:
- conf:/etc/nginx/conf.d
- vhost:/etc/nginx/vhost.d
- html:/usr/share/nginx/html
- dhparam:/etc/nginx/dhparam
- certs:/etc/nginx/certs:ro
- /var/run/docker.sock:/tmp/docker.sock:ro
healthcheck:
test: ["CMD", "true"]
interval: 1m30s
timeout: 10s
retries: 3
start_period: 40s

letsencrypt:
image: jrcs/letsencrypt-nginx-proxy-companion
container_name: nginx-proxy-le
network_mode: bridge
environment:
- NGINX_PROXY_CONTAINER=nginx-proxy
- [email protected]
volumes:
- conf:/etc/nginx/conf.d
- vhost:/etc/nginx/vhost.d
- html:/usr/share/nginx/html
- dhparam:/etc/nginx/dhparam
- certs:/etc/nginx/certs:rw
- /var/run/docker.sock:/var/run/docker.sock:ro

watchtower:
image: containrrr/watchtower
container_name: watchtower
network_mode: bridge
expose:
- 8080
environment:
- WATCHTOWER_CLEANUP=true
- WATCHTOWER_HTTP_API_TOKEN=lizhuohuan
- VIRTUAL_HOST=watchtower.zixia.net
- LETSENCRYPT_HOST=watchtower.zixia.net
volumes:
- /var/run/docker.sock:/var/run/docker.sock
command:
- --debug
- --http-api
- ceibsmobi

ceibsmobi:
image: ghcr.io/zixia/ceibsmobi.com
container_name: ceibsmobi
network_mode: bridge
expose:
- 80
volumes:
- /opt/data/ceibsmobi.com/admin/UploadFiles/:/var/www/admin/UploadFiles/
environment:
- HTTPS_METHOD=noredirect
- VIRTUAL_HOST=ceibsmobi.com,www.ceibsmobi.com
- LETSENCRYPT_HOST=ceibsmobi.com,www.ceibsmobi.com
env_file:
- .env

volumes:
conf:
vhost:
html:
dhparam:
certs:

0 comments on commit ea2b560

Please sign in to comment.