Browse Source

Literally getting so close.

feature/python-error-tracking
Drew Larson 8 years ago
parent
commit
3c72f014b6
  1. 2
      bikeshop_project/bikeshop/settings/production.py
  2. 11
      docker-compose.prod.yml
  3. 12
      docker-compose.yml

2
bikeshop_project/bikeshop/settings/production.py

@ -41,7 +41,7 @@ WEBPACK_LOADER = {
'DEFAULT': { 'DEFAULT': {
'CACHE': True, 'CACHE': True,
'BUNDLE_DIR_NAME': 'dist/', # must end with slash 'BUNDLE_DIR_NAME': 'dist/', # must end with slash
'STATS_FILE': os.path.join(BASE_DIR, 'webpack-stats-prod.json'), 'STATS_FILE': os.path.join(BASE_DIR, 'assets/webpack-stats-prod.json'),
'POLL_INTERVAL': 0.1, 'POLL_INTERVAL': 0.1,
'IGNORE': ['.+\.hot-update.js', '.+\.map'] 'IGNORE': ['.+\.hot-update.js', '.+\.map']
} }

11
docker-compose.prod.yml

@ -7,13 +7,15 @@ services:
ports: ports:
- "80:80" - "80:80"
- "443:443" - "443:443"
links:
- workstand
volumes_from: volumes_from:
- workstand:ro - workstand:ro
volumes: volumes:
- certs:/etc/letsencrypt - certs:/etc/letsencrypt
restart: always
networks:
- default
links:
- workstand
workstand: workstand:
build: build:
context: . context: .
@ -26,9 +28,6 @@ services:
- DJANGO_SETTINGS_MODULE=bikeshop.settings.production - DJANGO_SETTINGS_MODULE=bikeshop.settings.production
volumes: volumes:
- static:/code/static - static:/code/static
depends_on:
- redis
- db
redis: redis:
restart: always restart: always
db: db:

12
docker-compose.yml

@ -1,13 +1,19 @@
version: "2" version: "2"
services: services:
workstand: workstand:
networks:
- default
image: bcbc/workstand image: bcbc/workstand
depends_on: links:
- redis - redis
- db - db
redis: redis:
networks:
- default
image: redis:latest image: redis:latest
db: db:
networks:
- default
image: postgres:latest image: postgres:latest
volumes: volumes:
- pgdata:/var/lib/postgresql/data/ - pgdata:/var/lib/postgresql/data/
@ -15,3 +21,7 @@ services:
volumes: volumes:
pgdata: pgdata:
external: false external: false
networks:
default:
driver: bridge

Loading…
Cancel
Save