Skip to content
This repository has been archived by the owner on Jul 21, 2024. It is now read-only.

Commit

Permalink
Final docker commit (hopefully)
Browse files Browse the repository at this point in the history
  • Loading branch information
C4theBomb committed Feb 19, 2024
1 parent 5be23f6 commit dad6801
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
venv
venv
.env
4 changes: 2 additions & 2 deletions CollegiateHouseWars/settings/prod.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
DEBUG = False

ALLOWED_HOSTS = [
'csmb-housewars.c4patino.com'
'csmb-housewars.c4patino.com',
]

CSRF_TRUSTED_ORIGINS = [
Expand All @@ -17,7 +17,7 @@
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'housewars',
'NAME': os.environ.get('DATABASE_NAME'),
'USER': os.environ.get('DATABASE_USERNAME'),
'PASSWORD': os.environ.get('DATABASE_PASSWORD'),
'HOST': os.environ.get('DATABASE_HOST'),
Expand Down
7 changes: 6 additions & 1 deletion docker-compose.prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,21 @@ services:
build:
context: .
dockerfile: Dockerfile
platforms:
- linux/amd64
- linux/arm64/v8
image: c4thebomb/csmb-housewars:${TAG:-latest}
env_file:
- path: .env
required: true
ports:
- 8000:8000
- 127.0.0.1:8000:8000
networks:
- housewars
- common-network
external_links:
- mysqldb

networks:
common-network: {}
housewars: {}

0 comments on commit dad6801

Please sign in to comment.