Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Use official postgres image

Adam Bogdał34e87cad0eb9
diff --git a/compose/entrypoint.sh b/compose/entrypoint.sh
index b879e049bb..897277ea81 100755
--- a/compose/entrypoint.sh
+++ b/compose/entrypoint.sh
@@ -4,7 +4,7 @@ set -e
USER=saleor
APP_UID=$(stat -c "%u" /app)
-export DATABASE_URL=postgres://$DB_ENV_DB_USER:$DB_ENV_DB_PASS@db/$DB_ENV_DB_NAME
+export DATABASE_URL=postgres://$DB_ENV_POSTGRES_USER:$DB_ENV_POSTGRES_PASSWORD@db:5432/$DB_ENV_POSTGRES_USER
export EMAIL_URL=smtp://:@mailcatcher:1025/
export REDIS_URL=redis://redis:6379/0
diff --git a/docker-compose.yml b/docker-compose.yml
index 0943a2fc4e..e0106d7686 100755
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -1,15 +1,14 @@
db:
- image: sameersbn/postgresql:9.4
+ image: postgres
environment:
- - DB_NAME=saleor
- - DB_USER=saleor
- - DB_PASS=saleor
+ - POSTGRES_USER=saleor
+ - POSTGRES_PASSWORD=saleor
redis:
image: redis
mailcatcher:
- image: schickling/mailcatcher
- ports:
- - '1080:1080'
+ image: schickling/mailcatcher
+ ports:
+ - '1080:1080'
web:
build: .
environment: