Guest User

Untitled

a guest
Sep 11th, 2018
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. DATABASE_URL=pgsql://api_user:@GR&G)*(@HR#&RH@postgres:5432/portmone
  2.  
  3. php-fpm:
  4. build:
  5. context: ./docker/php-fpm
  6. volumes:
  7. - ./docker/php-fpm/php.ini:/usr/local/etc/php/php.ini
  8. - ./:/var/www
  9. expose:
  10. - "9000"
  11. postgres:
  12. build: ./docker/postgres
  13. volumes:
  14. - ./docker/postgres/entrypoint-initdb.d:/docker-entrypoint-initdb.d
  15. ports:
  16. - "5432:5432"
  17. environment:
  18. - POSTGRES_DB=portmonez
  19. - POSTGRES_USER=api_user
  20. - POSTGRES_PASSWORD=@GR&G)*(@HR#&RH
  21.  
  22. psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" <<-EOSQL
  23. CREATE USER portmone WITH PASSWORD '@GR&G)*(@HR#&RH';
  24. CREATE DATABASE portmone;
  25. GRANT ALL PRIVILEGES ON DATABASE portmone TO portmone;
  26. EOSQL
Add Comment
Please, Sign In to add comment