Skip to content

Commit 0878beb

Browse files
committed
Removed Postgres
1 parent 7389c2b commit 0878beb

2 files changed

Lines changed: 1 addition & 24 deletions

File tree

.env.example

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +0,0 @@
1-
POSTGRES_PASSWORD=postgres
2-
POSTGRES_USER=postgres
3-
POSTGRES_DB=postgres
4-
POSTGRES_PORT=5432

docker-compose.yml

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,4 @@
11
services:
2-
db:
3-
image: postgres
4-
ports:
5-
- "${POSTGRES_PORT}:5432"
6-
volumes:
7-
- postgres_db:/var/lib/postgresql/data
8-
environment:
9-
- POSTGRES_USER=${POSTGRES_USER}
10-
- POSTGRES_DB=${POSTGRES_DB}
11-
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
12-
restart: always
13-
env_file:
14-
- .env
152
web:
163
build: .
174
command: gunicorn --bind 0.0.0.0:8000 --workers 6 pygoat.wsgi
@@ -21,14 +8,8 @@ services:
218
- .:/app
229
depends_on:
2310
- migration
24-
- db
2511
migration:
2612
build: .
2713
command: python manage.py migrate --noinput
2814
volumes:
29-
- .:/app
30-
depends_on:
31-
- db
32-
33-
volumes:
34-
postgres_db:
15+
- .:/app

0 commit comments

Comments
 (0)