Skip to content

Commit

Permalink
Add docker image using docker hub image data
Browse files Browse the repository at this point in the history
  • Loading branch information
homata committed Mar 1, 2021
1 parent 1a1ead9 commit 23a9911
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
version: "3.7"

services:
https-portal:
image: steveltn/https-portal:1
ports:
- '80:80'
- '443:443'
depends_on:
- nginx
- app
links:
- nginx
- app
restart: always
environment:
DOMAINS: 'owaranai.tokyo -> http://nginx:80, api.owaranai.tokyo -> http://app:80'
STAGE: 'production'
volumes:
- ./var/lib/ssl_certs:/var/lib/https-portal
app:
image: homata/owaranai-meter_app
command: gunicorn config.wsgi:application --bind 0.0.0.0:80
working_dir: /usr/src/app/
volumes:
- ./app:/usr/src/app
- static_volume:/usr/src/app/staticfiles
- media_volume:/usr/src/app/mediafiles
expose:
- 80
env_file:
- ./.env.production
depends_on:
- db
db:
image: postgres:12.0-alpine
volumes:
- ./var/db/data:/var/lib/postgresql/data/
env_file:
- ./.env.production
nginx:
image: homata/owaranai-meter_nginx
expose:
- 80
volumes:
- media_volume:/usr/src/app/mediafiles
depends_on:
- app
links:
- app

volumes:
static_volume:
media_volume:

0 comments on commit 23a9911

Please sign in to comment.