Skip to content

Commit

Permalink
del: remove db container
Browse files Browse the repository at this point in the history
  • Loading branch information
kekeho committed Apr 15, 2019
1 parent b6a00b3 commit 378a689
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 23 deletions.
14 changes: 0 additions & 14 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
version: '3.3'

services:
db:
image: postgres
volumes:
- vpn4friends-account-db:/var/lib/postgresql/
ports:
- 5432:5432

openvpn_server:
build: vpn_server
volumes:
Expand All @@ -18,17 +11,10 @@ services:
- 80:8000 # WEB Front
cap_add:
- NET_ADMIN
depends_on:
- db
environment:
- CA_PASS=default
- EMAIL_TLS=True
- EMAIL_HOST=smtp.examplecom
- [email protected]
- EMAIL_HOST_PASSWORD=email_account_password
- EMAIL_PORT=587


volumes:
vpn4friends-account-db:
driver: local
18 changes: 9 additions & 9 deletions vpn_server/accounts_server/accounts_server/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,15 @@
# Database
# https://docs.djangoproject.com/en/2.2/ref/settings/#databases

DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql',
'NAME': 'postgres',
'USER': 'postgres',
'HOST': 'db',
'PORT': 5432,
}
}
# DATABASES = {
# 'default': {
# 'ENGINE': 'django.db.backends.postgresql',
# 'NAME': 'postgres',
# 'USER': 'postgres',
# 'HOST': 'db',
# 'PORT': 5432,
# }
# }


# Password validation
Expand Down

0 comments on commit 378a689

Please sign in to comment.