Created
August 14, 2019 10:31
-
-
Save blizzerand/e8e10fd4f744692c34fffb2b2b6a110e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "2" | |
services: | |
redis: | |
image: redis:4.0.5-alpine | |
hostname: redis | |
networks: | |
- redis-net | |
volumes: | |
- redis-data:/data | |
expose: | |
- 6379 | |
backend: | |
container_name: backend | |
restart: always | |
environment: | |
- MONGO_DATABASE=demo | |
- REDIS_URL=redis://cache | |
build: ./backend/ | |
ports: | |
- "3001:3001" | |
networks: | |
- redis-net | |
- app-network | |
depends_on: | |
- redis | |
webserver: | |
image: nginx:mainline-alpine | |
container_name: webserver | |
restart: unless-stopped | |
ports: | |
- "80:80" | |
volumes: | |
- ./nginx-conf:/etc/nginx/conf.d | |
- certbot-etc:/etc/letsencrypt | |
- certbot-var:/var/lib/letsencrypt | |
- ./data/certbot/www:/var/www/certbot | |
environment: | |
- SERVER_NAME=$BACKEND_SERVER_NAME | |
- EMAIL=$EMAIL | |
depends_on: | |
- backend | |
networks: | |
- app-network | |
certbot: | |
image: certbot/certbot | |
container_name: certbot | |
volumes: | |
- certbot-etc:/etc/letsencrypt | |
- certbot-var:/var/lib/letsencrypt | |
- ./data/certbot/www:/var/www/certbot | |
depends_on: | |
- webserver | |
command: certonly --webroot --webroot-path=/var/www/certbot --email manjunath@redmonark.com --agree-tos --no-eff-email -d demo-api.storylens.io | |
networks: | |
redis-net: | |
app-network: | |
driver: bridge | |
volumes: | |
redis-data: | |
certbot-etc: | |
certbot-var: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment