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': {
'CACHE': True,
'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,
'IGNORE': ['.+\.hot-update.js', '.+\.map']
}

11
docker-compose.prod.yml

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

12
docker-compose.yml

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

Loading…
Cancel
Save