version: '3.7' services: database: # Don't upgrade PostgreSQL by simply changing the version number # You need to migrate the Database to the new PostgreSQL version image: postgres:9.6-alpine environment: POSTGRES_USER: cas POSTGRES_PASSWORD: caspass POSTGRES_DB: cas volumes: - ./data_db:/var/lib/postgresql/data restart: always cas: build: context: . environment: DJANGO_DB_NAME: cas DJANGO_DB_HOST: database DJANGO_DB_USER: cas DJANGO_DB_PASSWORD: caspass DJANGO_SECRET_KEY: "Please change me in production !" DJANGO_HOST: localhost DJANGO_CAS_LDAP_SERVER: "re2o-ldap.adm.auro.re" DJANGO_CAS_LDAP_USER: "cn=cas,ou=service-users,dc=auro,dc=re" DJANGO_CAS_LDAP_PASSWORD: "Change me in prod !" DJANGO_CAS_LDAP_BASE_DN: "cn=Utilisateurs,dc=auro,dc=re" ports: - "8085:8000" restart: always depends_on: - database